View Full Version : .htaccess problem
Omair Haroon 11-13-2001, 08:53 AM Hello Guys..
One of my clients wants to use AdultCheck for verification purposes. Here is the .htaccess he wants to use but the .htaccess file is giving error.
The .htaccess looks like:
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+.)*domain.com [NC] RewriteCond %{HTTP_REFERER} !^http://id.adultcheck.com/ [NC] RewriteRule /* http://%{HTTP_HOST}/ [R,L]
* where domain.com is the domain name.
And the directory he wants to protect is /Members
I am receiving this error:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please help and reply asap.
-Omair
kprojects 11-13-2001, 10:40 AM htaccess files can be easy, or they can be a pain in the arse ;)
Just need to make sure everything lines up, like it's pointing to the right htpasswd file, and you have the httpd.conf set up right (or access.conf i believe, srm.conf? .. one of em) ..
Do you have any others on your box that you can compare it with? do you have any others on your box that are workin?
It's just one of those things that you'll need to check and make sure everything looks right, in my experience, it's usually something stupid that you're missing.. and you'll find it and kick yourself :)
swissfreak 11-13-2001, 11:49 AM Have you allready a working .htaccess on one of your customers accounts? Perhaps the use of .htaccess files is disabled on your RaQ?
Omair Haroon 11-13-2001, 12:54 PM All the things are right. Also I have that .htaccess content copied from a documentation file. Also I have many .htaccess files working already.
Actually this is my first time experience with Adult Check. No I am not creating an adult site its a client's site.
And this is the only server I have. :(
-Omair
Omair Haroon 11-13-2001, 02:21 PM Can anyone help me out?
-Omair
kprojects 11-13-2001, 02:43 PM Maybe check the adultcheck site in their setup section.. maybe there's some documentation on how they want you to have the htaccess file set up, and maybe some other notes about what to check if its not working correctly.
You can contact me if you like, but i'd expect to be compensated when I fix it ;)
Omair Haroon 11-13-2001, 02:55 PM Originally posted by RaQRob
You can contact me if you like, but i'd expect to be compensated when I fix it ;)
You mean some money?? :unhappy:
Can't you just help me out for the sake of humanity? :eek:
:D
-Omair
ASPCode.net 11-13-2001, 03:27 PM How did you edit the file? Ony our WIndows machine and then uploaded it?
Try opening the file with pico, add a space and then save. This will ensure the format is right for Linux. I have had some similar problems which has been solved this way.
Omair Haroon 11-13-2001, 03:56 PM No. I created that file through Pico
here is how I created it.
touch .htaccess
pico .htaccess
[then pasted the file contents]
Control X
DONE!
-Omair
Omair Haroon 11-13-2001, 03:58 PM BTW, Where is Chicken? I am missing him. He must definitely have a solution as usual :D
-Omair
Originally posted by Omair Haroon
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+.)*domain.com [NC] RewriteCond %{HTTP_REFERER} !^http://id.adultcheck.com/ [NC] RewriteRule /* http://%{HTTP_HOST}/ [R,L]
I don't know if you've covered this already, but:
1. Does it look exactly like that? - It seems the newlines are missing (you need to put each command on it's own line)
2. Have you checked the httpd error log to see what it says?
kprojects 11-13-2001, 06:39 PM Originally posted by Omair Haroon
You mean some money?? :unhappy:
Can't you just help me out for the sake of humanity? :eek:
Heh.. sorry, did I sound like a prick there? ;)
It's just that a problem like the one you're experiencing would be easiest to solve (IMO) by logging into the server and looking around to see what's what... I'm just one in hundreds on this board however that could help you.. most likely the next guy to post something will help you enough to get it goin correctly. :)
Rob
Chicken 11-13-2001, 09:46 PM The only thing I'd try is what Jens said, as it seems odd that you posted it like this
Originally posted by Omair Haroon
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+.)*domain.com [NC] RewriteCond %{HTTP_REFERER} !^http://id.adultcheck.com/ [NC] RewriteRule /* http://%{HTTP_HOST}/ [R,L]
When it should be like this
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+.)*domain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://id.adultcheck.com/ [NC]
RewriteRule /* http://%{HTTP_HOST}/ [R,L]
and uploaded in ascii...
|