.htaccess problems
So I edited my .htaccess file to not allow linking to my images stored on my server… And broke the syntax a little bit, completely disabling the ability to view any images on my server at all. I have corrected my error now, so everything should be back to normal. Firefox caching my sites images kept me from noticing the issue until today… =( So for about a week this site has been unviewable for the most of it. My bad.
If your curious, this is the code used to stop people from hot linking images from my site.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?://www\.chutography\.com(/(.*)?)?$ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ – [F]
I also created a PermaLink from http://chutography.com to http://www.chutography.com so that they both show up as the same site on search engines. Here is the code that I used to do this.
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^chutography.com [nc]
rewriterule ^(.*)$ http://www.chutography.com/$1 [r=301,nc]
These are very basic .htaccess features that every site should implement. Although the Image linking prevents me from using images on my host as avatars and signatures in forums, since they wont have access to the files. I’ll look into a way to correct this, if I find it I will post it up here.
© 2009, Chutography. All rights reserved.







