WithCandour / statamic-aardvark-seo

Candour's SEO addon for Statamic
https://statamic.com/marketplace/addons/aardvark-seo
11 stars 18 forks source link

Redirects for existing pages #128

Closed dave-smyth closed 2 years ago

dave-smyth commented 2 years ago

If we create a redirect for a page that exists the redirect doesn’t work. I guess this is the default and expected behaviour to prevent accidental redirects.

Is that interpretation correct? Do entries need to be unpublished (or deleted) for the redirect to work?

AndrewHaine commented 2 years ago

Hi @websmyth ,

That's correct, the current behaviour is to only redirect if the request would have resulted in a 404 so unpublishing or deleting and entry will result in the redirect working.

If you need a redirect to override a page i'd suggest redirecting at the server-level e.g. via htaccess.

Thanks, Andrew

dave-smyth commented 2 years ago

Makes sense – cheers. 🙌