Link to home
Start Free TrialLog in
Avatar of CharanR
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

Redirect permanent http://(.*):20001/voice/framework.jsp https://$1:20012/voice/framework.jsp

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of arober11
arober11
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CharanR
CharanR

ASKER

how can I do this for any IP
the condition you gave me worked for me
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]