|
Post by Steph Cowley on Jul 23, 2008 15:57:04 GMT 1
Any web designers out there who know about .htaccess files? I have one for a website I'm making at work, pretty basic (setting cache expiry date, custom error pages and preventing hot linking) but every time I upload it to any directory I get an Internal Server Error <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT" </FilesMatch>
# custom error documents ErrorDocument 401 /error/401.html ErrorDocument 403 /error/403.html ErrorDocument 404 /error/404.html ErrorDocument 500 /error/500.html
Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?controlshop.co.uk [NC] RewriteRule \.(jpg|jpeg|png|gif)$ http://www.controlshop.co.uk/Images/nohotlinking.jpg [NC,R,L] Anyone see why it won't work? P.S. I'm a relative newb at this, it's probably something fairly basic I'm missing. Also looking for a free (or at least cheap) on-the-fly website translator. I tried google and AV.com but I get the same problem with both...once a language (French for example) has been selected, the other translation links no longer work as they are being told to translate from english to whatever language, not from french. Anyone know any good translation services that don't have this problem? Or another way round it?
|
|