Forum Moderators: phranque
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteRule . /dispacher.php [L]
# and now break the rewriting for root php files
RewriteRule ^([^.]+).php - [L]
Can anyone enlighten me?
Thanks in advance.
Yes, you need to break the rule first:
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule \.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /dispatcher.php [L]
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !\.php$ /dispatcher.php [L]
Jim