× Here you can get community support related to ReDJ.

Nested errors not redirected

  • avangate
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 7 months ago #1476 by avangate
Nested errors not redirected was created by avangate
Hello

I have a small problem

the errors like
www.mysite.com/wrongpage are correctly trapped.

In the 404 page I added an horrible reload in the header
<meta http-equiv="refresh" content="0; www.mysite.com/404-new.html">
and it seems to work correctly.

If I have a wrong link such as

www.mysite.com/wrongfolder/wrongpage

it does NOT work and it tries to load
www.mysite.com/wrongfolder/404-new.html

which seems very strange to me (I'm not a big expert) because it's appending the file to the path, instead of loading it from the "root" http://...
it goes in loop and after a few seconds the error list shows 20 counts of this new error (which is probably timed out by the browser)

Any idea?
Thanks in advance!
AO

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

More
10 years 7 months ago #1481 by admin
Replied by admin on topic Nested errors not redirected
I don't understand if you have a redirect rule (server side) that could mess with the client side redirection. Could you provide a real example URL? You can send via mail to info(at)selfget.com if you prefer.

Kind regards,
Luigi

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

  • avangate
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 7 months ago #1483 by avangate
Replied by avangate on topic Nested errors not redirected
Hello,
Just sent by mail.
By the way, it could be nice to allow 404 page to point to another address, besides that a static html.

Regards,
AO

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

More
10 years 7 months ago #1484 by admin
Replied by admin on topic Nested errors not redirected
Hi,
about the loop issue, as anticipated by email the problem is related to server response. Is a redirect 301 with a Location relative (not absolute URL) that cause the loop. SO the problem is not the HTML refresh.

About the second question, you could create custom error pages with ReDJ, but I have not clear your request.

Kind regards,
Luigi

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

  • avangate
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 7 months ago #1485 by avangate
Replied by avangate on topic Nested errors not redirected
Hello
I tried with an absolute redirect too www.mysite.it/404.html and it does not work in the same way.

About the second question, I mean that the error page could be linked, not edited

Example

custom html page
Option 1: open the following address "www.mysite.it/404.html"
Option 2: show the following html page "<html.... etc etc /html>

I hope to explain.
Thanks
AO

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

More
10 years 7 months ago #1486 by admin
Replied by admin on topic Nested errors not redirected
I just sent you an email...

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

Time to create page: 0.101 seconds