CodeIgniter Forums
Ultimate Guide to .htaccess via NetTuts - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Ultimate Guide to .htaccess via NetTuts (/showthread.php?tid=18575)



Ultimate Guide to .htaccess via NetTuts - El Forum - 05-11-2009

[eluser]Dam1an[/eluser]
Being something that comes up again and again on these forums, I thought some of you might find this article interesting.
I know its not about CI .htaccess files, but a couple of interesting things in there none the less


Ultimate Guide to .htaccess via NetTuts - El Forum - 05-11-2009

[eluser]Tim Reynolds[/eluser]
When ever i come around to picking up the .htaccess file i get lost. I use them so infrequently i can never remember any of the basics.

Thanks
Tim


Ultimate Guide to .htaccess via NetTuts - El Forum - 05-11-2009

[eluser]Thorpe Obazee[/eluser]
Thanks. bookmarked Wink


Ultimate Guide to .htaccess via NetTuts - El Forum - 05-12-2009

[eluser]TheFuzzy0ne[/eluser]
I bought a book on the subject, and I still don't get it... Thanks for sharing, though. It looks like it might be better than the book I paid for.

Just one word of warning, however. Whilst just about every modern day browser supports compression, some older browsers don't, and they will only see a blank page. I added this to my htaccess file to help with this:

Code:
<IfModule mod_deflate.c>
        SetOutputFilter DEFLATE
        SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
        SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
        SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>