Moving out of a subdirectory…
-
This may help anyone else hitting the same issue. Having moved my site from a subdirectory (called wp) I used Better search replace to fix the database but site still didn’t work, the fix was at the bottom of the htaccess file, see below.
Two lines now commented out (#) the second of those duplicated with /wp removed (I’m no htaccess expert, maybe that whole section is not needed?)? <IfModule mod_rewrite.c>
? RewriteEngine On
? RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
? # RewriteBase /wp/
? RewriteRule ^index\.php$ – [L]
? RewriteCond %{REQUEST_FILENAME} !-f
? RewriteCond %{REQUEST_FILENAME} !-d
? # RewriteRule . /wp/index.php [L]
? RewriteRule . /index.php [L]
? </IfModule>
- The topic ‘Moving out of a subdirectory…’ is closed to new replies.