Handling 404s (setting up Page not found URL)

Vic Alfred Inting asked on November 13, 2014 16:44

I've setup the Page not found URL under CMSSitemanager -> Settings -> Content.

Whenever I test it by entering a non-existent URL/Alias, I get redirected to the set URL as configured. However, when I enter the same non-existent URL the second time, I get a Server Error, 404 - File or directory not found.

Anyone else encountered this issue?

Correct Answer

Brenden Kehren answered on November 13, 2014 21:27

Don't create a physical page in the file system. Create it in your content tree. By creating it in your file system, you're limiting yourself/website.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Tim Spring answered on November 13, 2014 17:37

You could try clearing the system cache in CMSSitemanager > Administration > System, also maybe try restarting the application from here too.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 13, 2014 19:56

When you enter your url, ensure it is setup like ~/404.aspx. Doesn't matter if you have extensionless urls or not, it needs to have the tilde and the .aspx to work properly.

0 votesVote for this answer Mark as a Correct answer

Vic Alfred Inting answered on November 13, 2014 20:40

Appreciate the reply guys. Hey Tim, I don't think it's the cache. Have tried it numerous times.

I tried your suggestion Brenden. I do have extensionless URLs and when I used 404.aspx instead of 404, it didn't display the right page. Also, 404 is a document/page I just created and not a physical aspx file on my root.

Should I use physical aspx files as the page not found url?

0 votesVote for this answer Mark as a Correct answer

Vic Alfred Inting answered on November 13, 2014 20:53

Ok I got it working but it's a bit tedious and somehow unsure if it's best practice. What I did:

1) create a physical 404.aspx file on my root 2) set /404.aspx as page not found URL 3) set /404.aspx as an excluded URL

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.