Lost .htaccess file

Lost .htaccess file

Posted by: trueslide
Posted on: 2005-03-18 19:09:00

Hi, I'm fairly obviously new to all this...

I made a .htaccess file according to the specs outlined in the knowledge base.

Looks like this:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://seedyplayer.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.seedyplayer.com.*$ [NC]
RewriteRule .*.(gif|jpg|jpeg|bmp)$ http://www.seedyplayer.com/stophotlinking.html [R,NC]


I saved the file as ansi text, copied it to my site via FTP (just from the domain manager on the dreamhost main page; i don't have a dedicated ftp client) and I changed the name from htaccess.txt to .htaccess.

This worked fine for a few days, and then I tried modifying it to allow some people in. I copied "over" the .htaccess file a few times, and unfortunately I think one of the times I did that it was in an odd text format initially. The end result: my file is no longer preventing hotlinking.

In any case, I understand the file is hidden. I'd like to view it, so I can find out what's wrong and make any changes. How can I view my .htaccess file from within the domain manager?

Thank you.

Re: Lost .htaccess file

Posted by: macmanx
Posted on: 2005-03-18 19:17:00

https://panel.dreamhost.com/kbase/index.cgi?area=2932

Tags: htaccess fileftp clientdomain managerdreamhostunfortunatelyjpeg bmpjpg jpeghttpobviouslygif jpghotlinkingknowledge basetxt