Question regarding URL aliases

Andrew Rees asked on November 17, 2015 10:59

I'm currently setting up some URL redirects for a client, and I'm looking at implementing a page with a wildcard to catch all requests to pages that no longer exist, rather than redirect to the 404.

If the page has been deleted then this works fine, but it doesn't if the page has expired or isn't published. In this case it just redirects to the 404 page.

Is there anyway to get the catch all URL alias to catch requests to expired / unpublished pages?

Thanks

Recent Answers


Brenden Kehren answered on November 17, 2015 14:08

To do a mass redirect, your best bet is to use the settings in IIS. Another option is to create the page you want them to go to and simply add all your aliases to that page.

1 votesVote for this answer Mark as a Correct answer

Andrew Rees answered on November 17, 2015 18:15

Hi Brendan,

Thanks for the answer.
I added the catchall alias to the page I want the users to be redirect to, and it works fine for pages that do not exist. For pages that do exist in an unpublished or expired state it just redirects the user to the 404 page.

Thanks

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 18, 2015 14:01

So it sounds as if your 404 page is just a renamed page. So what I'd do is in the settings URLs and SEO set your 404 page to the "catch all" page vs. the 404 page. Your URL should be something like /404 or /Catch-All

0 votesVote for this answer Mark as a Correct answer

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