Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-10-2002, 03:57 PM   #1
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
.htaccess expert needed

.htaccess expert needed for an interesting problem. (and i know i already posted this in the webmaster forum, but this forum is so much more helpful.)

I'm getting an infinite loop happening in my .htaccess redirection. Is there anyway to 'turn off' the redirect when the html file being loaded *is* where the browser is being redirected to?
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2002, 04:00 PM   #2
kevin197
Registered User
 
Join Date: Sep 2002
Posts: 18
post your code please
kevin197 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2002, 04:07 PM   #3
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Here it is:

RewriteEngine On
RewriteCond %{HTTP_REFERER} .*substring.* [NC]
RewriteRule /* http://www.freegallery.biz/index2.html [R,L]

So whenever a referrer has "substring" in it, it forwards it to my entrance page, http://www.freegallery.biz/index2.html, instead of my main page, http://www.freegallery.biz/. The problem is that when index2.html is requested, the referrer still matches the substring and causes an infinite loop.

Last edited by HQ; 09-10-2002 at 04:50 PM..
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2002, 04:12 PM   #4
salsbury
Confirmed User
 
Join Date: Feb 2002
Location: Seattle
Posts: 1,070
RewriteCond %{REQUEST_URI} !^/index3.html

ought to do it, before the RewriteRule?

edited out the [NC] - it is unnecessary
__________________

Last edited by salsbury; 09-10-2002 at 04:13 PM..
salsbury is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2002, 04:35 PM   #5
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Quote:
Originally posted by salsbury
RewriteCond %{REQUEST_URI} !^/index3.html

ought to do it, before the RewriteRule?

edited out the [NC] - it is unnecessary
I don't see how that will work. Where do I put in my substring comparison? And why is [NC] unnecessary?
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.