Adding WordPress to subdir of my file changed redirection of parent site’s docs
-
When WordPress was added to my site, its
RewriteBase /oo_blog/
directive in root .htaccess appears to have impacted the redirection to the current custom 404 error page for the parent site:ErrorDocument 404 /404.shtml
Here is the full .htaccess file from the root of my site:
<Files .htaccess> order allow,deny deny from all </Files> <strong><IfModule mod_rewrite.c> RewriteEngine On RewriteBase /oo_blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /oo_blog/index.php [L] </IfModule></strong> ErrorDocument 404 /404.shtml
The section highlighted in bold is pertinent only to, and has been added by, the WordPress install. However it appears to have a global impact on the site. Other overwrite directives as well as the
ErrorDocument 404
direction seen at the bottom, appear to be impacted. Note that I’ve had thatErrorDocument 404
at the top before – same result.How do I prevent the WordPress directives from impacting the rest of the site? Your advice and expertise would be really appreciated.
Thanks
Alex
- The topic ‘Adding WordPress to subdir of my file changed redirection of parent site’s docs’ is closed to new replies.