Help With htaccess RewriteRule
-
I have a wordpress install that I host myself and I need some help with htaccess.
I am using one of the suggested htaccess files for better security. By default, it works fine. I now have a few non-wordpress pages (php and html) that I need to host in a subdirectory that will not work with my current rewrite rules. I have traced it down to one specific rule, but I do not know enough about rewrite to fix it. Here are the details:
/ (http root)
– .htaccess
– wp root
– subdir1
– index.php (works)
– page.html (works)
– subdir2
– index.php (does not work)
– page.html (does not work)The rewrite rule that makes the pages in the 2nd subdirectory fail is:
RewriteRule . /index.php [L]
The failure I get is page cannot be found in wordpress. Like I said, these pages are not connected to wordpress in any way. They’re standalone pages for a specific need. Anyone know rewrite that can tell me how to fix this?
- The topic ‘Help With htaccess RewriteRule’ is closed to new replies.