mod rewrite rule failing
Posted: Tue Sep 05, 2006 1:50 pm
Code: Select all
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.phpAlso, yes, Mod rewrite is loaded as a module.
Thanks
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.phpCode: Select all
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule index.php[QSA,L]FollowSymLinks is required under both Apache 1.x and 2.Note: Enabling rewrites in per-directory context
To enable the rewriting engine for per-directory configuration files, you need to set ``RewriteEngine On'' in these files and ``Options FollowSymLinks'' must be enabled. If your administrator has disabled override of FollowSymLinks for a user's directory, then you cannot use the rewriting engine. This restriction is needed for security reasons.