CharanR
asked on
how do I redirect a page within a website
I want to redirect
http://192.168.15.6:20001/voice/framework.jsp
to https://192.168.15.6:20012/voice/framework.jsp
does this work in httpd.conf
http://192.168.15.6:20001/voice/framework.jsp
to https://192.168.15.6:20012/voice/framework.jsp
does this work in httpd.conf
Redirect permanent http://(.*):20001/voice/framework.jsp https://$1:20012/voice/framework.jsp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If it's an IP, rather than host name, then something like the following should work (un-tested):
RewriteEngine On
RewriteCond %{HTTP_HOST} ([0-9]+\.[0-9]+\.[0-9]+\.[ 0-9]+):
RewriteRule ^/voice/framework.jsp https://%1:20012%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ([0-9]+\.[0-9]+\.[0-9]+\.[
RewriteRule ^/voice/framework.jsp https://%1:20012%{REQUEST_URI} [R=301,L]
ASKER
the condition you gave me worked for me