#1 June 11, 2018 3:01pm

mckenzieriley
Member
Registered: October 17, 2017
Posts: 15

301 Redirect

Each time I create a new 301 redirect, it successfully creates but the URL does not redirect as it should. The URL remains how it was. Any ideas what could be causing this?

Offline

#2 June 11, 2018 4:09pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 895

Re: 301 Redirect

Can you elaborate on what you mean when you say the URL remains how it was? Are you saying you add the 301 and the source URL still produces a 404 page?

Offline

#3 June 12, 2018 9:14am

mckenzieriley
Member
Registered: October 17, 2017
Posts: 15

Re: 301 Redirect

Whenever I set up a 301 redirect, I put in the old URL and then the new URL that it is supposed to redirect to. However, the URL does not redirect to the new one even after saving the 301 redirect.

Offline

#4 June 12, 2018 9:16am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 895

Re: 301 Redirect

Does the old URL produce a 404?

Offline

#5 June 12, 2018 9:42am

mckenzieriley
Member
Registered: October 17, 2017
Posts: 15

Re: 301 Redirect

No, it does not.

Offline

#6 June 12, 2018 9:44am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 895

Re: 301 Redirect

If it's not producing a 404, then there's nothing for the redirect engine to "catch" and redirect. If you're trying to redirect an old page to a new one you'll need to archive the page that exists at the old URL. If you're doing this based on module content (e.g. through a routed template) then the routed template needs to properly throw $cms->catch404(); on invalid routes.

Offline

#7 June 12, 2018 9:53am

mckenzieriley
Member
Registered: October 17, 2017
Posts: 15

Re: 301 Redirect

We just tried it with a archived page and it did work as you mentioned it would, thank you. That makes perfect sense as to why it wouldn't work with a live page.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.