Redirect HTTPS request to HTTP

Discuss practical ways rearrange URLs using mod_rewrite.

Redirect HTTPS request to HTTP

Postby Guest » Mon Aug 05, 2002 11:25 am

Can any one tel me how to redirect HTTPS request to HTTP based on a condition such.
For example below urls.
HTTPS://www.sitename.com/name/login.SERVLET
should be made as
HTTP://www.sitename.com/name/login.SERVLET
based on the 'SERVLET' extention using modrewrite
Guest
 

Postby Brett » Mon Aug 05, 2002 12:27 pm

Try this:
Code: Select all
RewriteEngine on
RewriteCond %{HTTPS} ^on
RewriteRule ^name/login\.SERVLET$ http://sitename.com/name/login.SERVLET
Brett
 
Posts: 82
Joined: Tue Jul 10, 2001 4:00 pm
Location: yohost.com


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 95 guests

cron