Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a limit to the number of redirects in htaccess?

Status
Not open for further replies.

jimoblak

Instructor
Oct 23, 2001
3,620
US
My .htaccess file consists of:

Code:
Redirect /Monkey/ [URL unfurl="true"]http://www.mysite.com/monkey/index.html[/URL]
Redirect /MONKEY/ [URL unfurl="true"]http://www.mysite.com/monkey/index.html[/URL]
Redirect /Monkey [URL unfurl="true"]http://www.mysite.com/monkey/index.html[/URL]
Redirect /MONKEY [URL unfurl="true"]http://www.mysite.com/monkey/index.html[/URL]
ErrorDocument 404 [URL unfurl="true"]http://www.mysite.com/error.html[/URL]
[code]

Is there a limit to the redirects?  

I am getting some odd results but it may because I am going through a buggy proxy.  The first redirect line always seems to work.  The remaining redirects do not seem to consistently work.

- - picklefish - -

Why is everyone in this forum responding to me as picklefish?
 
Not as far as I can see:

But note the following from that link:
The Redirect directive maps an old URL into a new one. The new URL is returned to the client which attempts to fetch it again with the new address. URL-path a (%-decoded) path; any requests for documents beginning with this path will be returned a redirect error to a new (%-encoded) URL beginning with URL.

So that would indicate that lines 1&3 and 2&4 do the same and the end slash is not required?

Why not use a Rewrite instead if you continue to have problems?

Good Luck,
Laurie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top