rewrite rule to skip folder [closed]
- by redcoder
RewriteEngine on
RewriteBase /tradesalvage/demo
RewriteRule ^featured-cars/?$ index.php [L]
RewriteRule ^current-stock/?$ carlist.php [L]
RewriteRule ^about-us/?$ aboutus.php [L]
ErrorDocument 500 /tradesalvage/demo/500.php
ErrorDocument 404 /tradesalvage/demo/404.php
I have the above rule in .htaccess
when access url "http://localhost/tradesalvage/demo/about-us" , it does redirect to aboutus.php file .It also works fine with the rest of the rule.
But i have a problem when i create a admin folder.WHen access "http://localhost/tradesalvage/demo/admin/add-data" , it goes to the 404 error page.How do I write the rule to skip the admin folder ?