Changing Permalink ReWriting Rule…..?
-
My WP files are in a folder called ‘blog’ under the root directory and I have pointed blog address to my site home page. My settings are like below,
WordPress address (URI): https://www.example.com/blog
Blog address (URI): https://www.example.com
Recently I installed PHPList in a sub directory. It’s address is as below,
https://www.example.com/lists/newsletter/
The problem I have is, WP shows its 404 error page for some URLs in folder ‘newsletter’. I suspect this is due to the ReWrite rule WP has employed. In root directory .htaccess, the rules are as below,
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
In the ‘blog’ folder .htaccess, rules are like below. I think WP no longer uses these rules and it only uses the ones contain in root directory.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule># END WordPress
What I want to know is that, is there a way to exclude ‘newsletter’ folder from above rule? Or, is there any other way that I can overcome this issue?
- The topic ‘Changing Permalink ReWriting Rule…..?’ is closed to new replies.