redirect host/cocoon https://host/cocoon

New to mod_rewrite? This is a good place to start.

redirect host/cocoon https://host/cocoon

Postby Tuan » Wed Mar 03, 2004 9:34 pm

Hello
I'm trying to redirect all requests from host/cocoon to https://host/cocoon

I have tried this:
RewriteEngine On
RewriteCond %{SERVER_NAME} 80
RwriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=permanent]


This seems to work, if you type in the hostname in the URL line. but if you enter hostname/cocoon, the result would be http://host/cocoon

Does anyone has an idea?
Tuan
 
Posts: 1
Joined: Wed Mar 03, 2004 9:24 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 34 guests

cron