imaginarynumber Posted November 9, 2009 Posted November 9, 2009 Hi all I would like to redirect all traffic from http://www.mysite.com/survey to https://www.mysite.com/survey I have added the following line to the root htaccess file RewriteRule ^survey/?$ "https\:\/\/www\.mysite\.com\/survey\/" [R=301,L] but it does nothing at all, I have also tried the above without the escape characters. Do I need to add anything to the htaccess file in the survey folder as well? Thanks in advance Quote
TCH-Bruce Posted November 9, 2009 Posted November 9, 2009 You can try the following in a .htaccess file inside your survey folder with no rewrite rules for it in your root .htaccess >RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.