![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Registered User
Join Date: Sep 2002
Posts: 18
|
post your code please
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |