.htaccess Redirect Question
-
Hey everyone,
This is the scenario. index.html in the root, WP installed in /blog.
I normally install WP in the root and use the following code in the root .htaccess file to redirect all non-www traffic to www:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteRule ^(.*)$ https://www.domain.com/$1 [R,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
My question is, how do I do the same thing with my URL’s now that WP is installed in a subfolder?
Many thanks in advance!
Mick
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘.htaccess Redirect Question’ is closed to new replies.