Forum Moderators: phranque

Message Too Old, No Replies

Redirect 301 - Another weird

         

ruip

9:10 am on Feb 1, 2009 (gmt 0)

10+ Year Member



I'm got crazy, i change some urls and until index i use

redirect 301 /abct/etc/ hxxp://www.domain.com/xpto/

i use this for years no problems, now i change 3 urls

redirect 301 /index.php/content/view/111/ hxxp://www. .domain.com/index.php/content/view/111/155/

don't work i get a loop in end like .... 111/155/155/155/...
same if i use 112, and 113
but if i use this one, work ok
redirect 301 /index.php/content/view/248/1/ hxxp://www.domain.com/index.php/content/view/248/155/

why loop only in some urls.

jdMorgan

6:33 pm on Feb 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You will get a loop if the URL-path prefix on the left matches the requested URL.

This cannot be avoided if you are using an external redirect.

Jim

ruip

5:30 am on Feb 2, 2009 (gmt 0)

10+ Year Member



Thks jdMorgan

to solve this, i change target url to something diferent from first one.

Work well