× Here you can get community support related to ReDJ.

301 gives infenent loop

More
11 years 4 months ago #1275 by js
301 gives infenent loop was created by js
i get errors on this redirect

any idea what goes wrong and how to fix it ?




Attachments:

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #1276 by admin
Replied by admin on topic 301 gives infenent loop
You need to specify your rule better using regular expressions features:
From: ^/banner$

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #1277 by admin
Replied by admin on topic 301 gives infenent loop
Ah,
the destination MUST be absolute, so http://{siteurl}/product/banner is better... ;)

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #1278 by js
Replied by js on topic 301 gives infenent loop
actually it worked fine, with just the first change ;)

thanx... haven't had that problem before, but thats proberly because its mostly from url's with ?id=.... i have done redirects before to new urls...and for that, it works fine without the regular expressions ;)

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #1279 by admin
Replied by admin on topic 301 gives infenent loop
The second change is just a suggestion. You are sending to browsers a wrong destination URL, and the browser redirects just because is a good boy... :)

But specifications tell that the URL must be absolute.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #1280 by js
Replied by js on topic 301 gives infenent loop
well thanx... i have put both into as suggested and now it works and i have a happy client :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.168 seconds