GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess problem..... (https://gfy.com/showthread.php?t=83169)

Scootermuze 10-17-2002 07:21 AM

htaccess problem.....
 
I tried using this simple htaccess file in a directory I want protected...:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^www.xyz.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^xyz.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^www.xyz.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^xyz.com:80/.*$ [NC]
RewriteRule .*\.jpg$ http://www.go here if not xyz.com[R,L]

I'm getting the red x even when coming from xyz.com...

hep me hep me!!

andi_germany 10-17-2002 07:39 AM

Try the full URL with http://

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.xyz.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xyz.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.xyz.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^xyz.com:80/.*$ [NC]
RewriteRule .*\.jpg$ http://www.go here if not xyz.com[R,L]

you might want to try to set this into the conf statement sometimes .htaccess behaves weird. Also allow overide all should be inside the conf file.

Sexproject 10-17-2002 07:42 AM

"Simple .htaccess..."?!

Mine has 2 lines and they don't look anything like that!

Validus 10-17-2002 07:48 AM

How would I go about directing people based on their username?

Lets say....

Paul ...... index.html
Jim ...... yahoo.com

any simple solutions with .htaccess?

Scootermuze 10-17-2002 08:03 AM

Quote:

Originally posted by andi_germany
Try the full URL with http://


That seems to have fixed it...

Thanks..

richard 10-17-2002 09:43 AM

Validus, yes there is a simple way to do that :-)

RewriteEngine on

RewriteCond %{REMOTE_USER} ^Paul$
RewriteRule .* /path/to/index.html

RewriteCond %{REMOTE_USER} ^Jim$
RewriteRule .* http://www.yahoo.com


You can also use the user in the path to redirect to, for eg if you wanted to send Paul to: site.com/members/Paul/

RewriteCond %{REMOTE_USER} ^Paul$
RewriteRule .* /path/to/members/%{REMOTE_USER}/

hope that helps!

Richard.


All times are GMT -7. The time now is 06:00 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123