.htaccess with more than one command
-
I just upgraded to an SSL for my website, and I need to write a 301 redirect for the new location. This is what I have now:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> UPDATE wp_posts SET post_content = replace(post_content, 'http://www.yourcruiseyourway.com/wordpress', 'http://www.yourcruiseyourway.com'); Redirect 301 /wordpress/ http://www.yourcruiseyourway.com/ # END WordPress
and this is what I need to add:
RewriteEngine on rewritecond %{http_host} ^yourcruiseyourway.com [nc] rewriterule ^(.*)$ http://www.yourcruiseyourway.com/$1 [r=301,nc]
So where do I insert the second part into the first part to make it work corrcetly and show my site as https:?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘.htaccess with more than one command’ is closed to new replies.