apache mod_rewrite problem: all css/js/images 404 |
Rather than using an .htaccess file, I'm trying to get the basic CodeIgniter mod_rewrite files working in my apache conf file. I'm doing this because apache says .htaccess files cause a performance hit.
Quote:You should avoid using .htaccess files completely if you have access to httpd main server config file. The mod_rewrite section of my apache conf, which is based on the default htaccess file, looks like this: Code: <IfModule mod_rewrite.c> Note that the www redirect is a bit different in my case due to different requirements. This mostly works, but for some reason it also rewrites all of my CSS/JS/images also despite the !-f and !-d rewrite conditions. Can anyone tell me how to modify this so that it prevents rewriting of actual files to the index.php file? |
Messages In This Thread |
apache mod_rewrite problem: all css/js/images 404 - by sneakyimp - 02-12-2021, 12:51 PM
RE: apache mod_rewrite problem: all css/js/images 404 - by kenjis - 02-12-2021, 07:02 PM
RE: apache mod_rewrite problem: all css/js/images 404 - by sneakyimp - 02-12-2021, 07:14 PM
RE: apache mod_rewrite problem: all css/js/images 404 - by InsiteFX - 02-12-2021, 09:59 PM
RE: apache mod_rewrite problem: all css/js/images 404 - by sneakyimp - 02-13-2021, 09:40 AM
|