Multiple .htaccess files on one website
-
Hello,
I have WordPress installed in a directory called “wordpress” for my website located at: hauserdesigngroup.com(blog here: hauserdesigngroup.com/wordpress/
You will notice when you click that link that it bumps you over to https://WWW.hauser…
I have this file in place to add WWW with a 301 redirect to every page:
RewriteEngine on RewriteCond %{HTTP_HOST} ^hauserdesigngroup\.com$ [nc] RewriteRule ^(.*)$ https://www.hauserdesigngroup.com/$1 [R=301,L]
However, once in the “wordpress” directory, this doesn’t work – and I am guesing it’s not compatable with the .htaccess for re-writing URLs. I mean if you go to “hauserdesigngroup.com/wordpress/”, it doesn’t get adjusted to “WWW.hauserdesigngroup.com/wordpress/”.
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L] </IfModule>
Is there a way to combine these two?
I would just like to make sure the blog section adds “WWW” to every URL like the rest of the site.Thanks very much.
- The topic ‘Multiple .htaccess files on one website’ is closed to new replies.