Web Hosting Talk







View Full Version : need help with htaccess file


shute
06-05-2002, 04:36 PM
Hello i was trying to make my first .htaccess.txt file and i tried uploading it to my server with ws_ftp. I'm still not sure if it's working but the problem is that i can't seem to see the file once i upload it. Should it be doing that to hide itself or am i doing something wrong? also someone do a double check on my code.

SetEnvIfNoCase Referer "^http://www.jpop7.com" local_ref=1
<FilesMatch ".(gif|jpg|wmv|zip|avi)">
Order Allow,Deny
Allow from env=local_ref
</FilesMatch>

the file is loading in my file server and i only want my jpop7.com site to access it's files which is on another server.

Thanks

grandad
06-05-2002, 04:43 PM
I don't think you should be able to see it.

CyberScript
06-05-2002, 04:48 PM
There is a little textbox right below the "Mkdir" button in ws_ftp (on the server side, not local).

Type * into this box and press enter to see all files. Files that start with a . are hidden by default.

Also, not sure if this is different on your server but the file should be named .htaccess, not .htaccess.txt

xerocity.com
06-05-2002, 07:35 PM
Originally posted by CyberScript
There is a little textbox right below the "Mkdir" button in ws_ftp (on the server side, not local).

Type * into this box and press enter to see all files. Files that start with a . are hidden by default.

Also, not sure if this is different on your server but the file should be named .htaccess, not .htaccess.txt

I have been using WS_FTP Pro for the past 3 or so years and I never did know what that white box was for :confused: But, you learn something new every day, thanks. :D