Forum Moderators: phranque
RewriteEngine on
RewriteRule!\.(js¦ico¦gif¦jpg¦png¦css)$ index.php
and that works only somtimes. If I view my site through http://www.example.org or http://www.example.org/ it gives me a 500 error. However if I go to http://www.example.org/index.php it will work, or if I set it up as subdomain http://example.sitehost.org it will work. I am not sure what I am doing wrong, everywhere i have looked has some sort of variation of this rewrite rule and none seem to fix this.
Dan
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule !\.(js¦ico¦gif¦jpg¦png¦css)$ index.php [L]
RewriteRule !(\.(js¦ico¦gif¦jpg¦png¦css)¦^index\.php)$ index.php [L]
Replace all broken pipe "¦" characters with solid pipes before use; Posting on this forum modifies the pipe characters.
Jim