Wordpress in root. PHP in subdirectory. htaccess help?
I have a subfolder called /directory/
The /directory folder has all PHP files that are not associated with Wordpress at all.
I have my directory working fine when I don't place a .htaccess file in the directory folder. So for instance, /directory/states.php?country=usa shows up and operates just fine. I created an htaccess folder hoping I could rewrite this to /directory/usa...
/directory/states.php?country=usa -> /directory/usa
I simply used this in my .htaccess file WITHIN my /directory folder:
--------------------------
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/directory/
RewriteRule ^(.*) /directory/index.php [L]
RewriteCond %{REQUEST_URI} ^/directory/([a-z0-9,\_]+)
RewriteRule ^(.*) /directory/states.php?country=%1 [L]
---------------------------
This breaks all pages and gives the infamous "Internal Server Error" page.
Thoughts? How do I do this? I've done this several times on a site that didn't have Wordpress in the root. But now the wordpress .htaccess seems to be screwing it up or something.
Thanks in advance!
-
kokopelli -
Thanks
Signature~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{{ DiscussionBoard.errors[5478097].message }} -
-
rknuppel -
Thanks
{{ DiscussionBoard.errors[5478125].message }} -
-
kokopelli -
Thanks
Signature~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{{ DiscussionBoard.errors[5478189].message }} -