View Full Version : .htaccess not working


ladyluna
11-15-2003, 04:37 PM
<i>do you have the CHMOD of the file set to 644?</i>

So, that's my problem, I don't know how to do that. Could someone help out?

Loren
11-15-2003, 07:57 PM
Can I see the .htaccess file? What isn't working about it?

ladyluna
11-15-2003, 08:36 PM
Hi, I would just like to know what a CHMOD exactly is and how I should set it to 644.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?unintended.org/hcb/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?unintended.org/hcb.*$ [NC]
RewriteRule \.(gif|jpg)$ http://hcb.unintended.org/images/antihcb.gif [R,L]

or did I do something wrong? It's just that when I upload it to my server, the file immediately disappears, is that normal? I've also tried to check if it really prevents hotlinking, but it doesn't seem to work. So, I think that's because of that CHMOD thing.

pb&j
11-15-2003, 09:10 PM
Originally posted by ladyluna
It's just that when I upload it to my server, the file immediately disappears, is that normal?

does your host support personal htaccess files?

if so, perhaps your FTP program is set to not view certain files and you will just have to adjust your settings to see it.

once you can see the file, right click on it through your FTP program and CHMOD should be one of the choices.

Rosey
11-15-2003, 09:19 PM
Mine also disappears straight away. What part is not working?

Aren't things automatically 644 when they get uploaded?

Loren
11-16-2003, 12:47 PM
Well, all I can say is, it seems to be working look at your site.

ladyluna
11-20-2003, 06:42 PM
err excuse me? :)

darkowl
11-20-2003, 10:35 PM
all your images are broken because of your .htaccess try to change it to this:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(lalune\.)?unintended.org/hcb/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(lalune\.)?unintended.org/hcb.*$ [NC]
RewriteRule \.(gif|jpg)$ http://hcb.unintended.org/images/antihcb.gif [R,L]

you were preventing your own site from using your images.

ladyluna
11-21-2003, 09:32 PM
Thanks very much, but I thought the thing wasn't even working..and why didn't anyone else tell me the coding was wrong and I was accidentally blocking MYSELF? I can't see any broken images, that's the biggest joke of it all.

I'm pretty disappointed about this because I CAN'T even change the file because I CAN'T see it, what do you suggest I do now? Jeez, were you laughing at me or what, Loren? I really don't appreciate this.



erm. lalune is just my other site, it has nothing to do with my hcb site, so why did you add it to the code? i'd like to know that before I start doing any more stupid things. Oh well, too late.

Rosey
11-21-2003, 10:54 PM
Just upload the new version of it, I can't see mine either but i just upload the next version.