mod_rewrite
Posted: Wed Feb 27, 2008 8:18 am
(Wasn't sure where to post this, if you think it is better suited in the regex forum then feel free to move
)
Hi, got a wee mod_rewrite problem.
I want to route all requests to a site through index.php. The mod_rewrite I have is:
As you can (hopefully) see from the above, I only want to route requests which aren't in the parent directory of plugin, Public, or template. But for some reason it isn't working! It works for some pages, but for ones like 'example.org/error' and 'example.org/test' it doesn't work.
Any ideas?
Thanks
Hi, got a wee mod_rewrite problem.
I want to route all requests to a site through index.php. The mod_rewrite I have is:
Code: Select all
RewriteEngine On
RewriteRule ^[^plugin|Public|template].*? index.php [L]Any ideas?
Thanks