Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Advanced redirect?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #35475
    schart
    Participant

    So there is a problem with my hoster. You know how you put a index.html file in a folder to make a better looking URL? Recently, I’v had to add a “/” behind that as well (http://www.somedomain.com/somefolder/ not /somefolder). This has caused lots of broken links to 404. Now I want the 404 page to redirect to the location.href + “/” but only one time. If it bounces back, ignore the code. This is all I need help with, don’t mind the hosting problem, I’ll take that one on my own.

    To clear up everything: I want a script that redirects to location.href + “/”, but only one time, if it bounces back to the 404 page (if the URL is still 404 with “/” at the end) then ignore script.

    Thanks :)

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.