Mod Rewrite and .ico files

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Mod Rewrite and .ico files

Post by shiznatix »

I am redirecting everything using my .htaccess file to index.php except for a few exceptions. This is the rule I am using:

RewriteRule !\.(js|ico|gif|jpg|png|css|php|bmp|txt)$ index.php

But the problem is that it works for everything except .ico files! I can go to http://www.rakeback.com/rakeback.ico and I get the 404 error. I don't get it because I have explicitly said not to redirect .ico files. How can I fix this?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Re: Mod Rewrite and .ico files

Post by shiznatix »

of course it redirects, there was no rakeback.ico file! zargs! i hate it when i do stuff like that.
Post Reply