nystudio107 / retour

DEPRECATED Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website.
Other
168 stars 24 forks source link

Basic redirect not working #94

Closed frankharrison-wj closed 6 years ago

frankharrison-wj commented 6 years ago

I'm trying to add a very basic redirect but it's not working. It's as simple as this:

Legacy URL Pattern: /sustainable-energy/news-and-opinion Destination URL: /about/news-and-opinion Pattern Match Type: Exact Match Redirect Type: 301

But when I go to mysite.com/sustainable-energy/news-and-opinion it doesn't redirect. Other similar redirects set up in Retour work as expected (they are all Exact Match) and there's nothing non-standard in my .htaccess.

Any ideas how to diagnose this issue? I'm on Retour 1.0.19, Craft 2.6.2964.

Thanks!

mierla commented 6 years ago

I'm having this problem too - did you ever get it figured out?

Edit: Apparently I just needed to be patient. My basic redirects are working as expected now, without intervention.

frankharrison-wj commented 6 years ago

Hmm, that's odd that they would work after some time had passed. I never figured mine out – ended up using .htaccess for that redirect.

brandondeweese commented 6 years ago

Anyone have an answer for this? Ive used this plugin in the past and if seemed to work great... I can't get it to redirect a simple blog entry back to the blog page.

Strikwerda commented 6 years ago

Hi there. I'm having a similar issue. I work for an SEO company and just took over a client that is using Craft CMS and Retour. Entering in some basic static redirects, Exact Match, 301 - Permanents. Checking back half-an-hour later and not working. Any areas to troubleshoot?

Strikwerda commented 6 years ago

Anyone check this support thread?

brandondeweese commented 6 years ago

I've switched to this plugin until there's a fix.

https://github.com/davist11/craft-reroute

frankharrison-wj commented 6 years ago

Shame that Reroute doesn't do regex – means I'd need two separate plugins for different types of redirects. Hope this gets fixed in Retour soon!

jerwarren commented 6 years ago

I was just trying to get this to work and eventually noticed that Retour only applies to urls that return a 404. So if you're trying to redirect a url that currently exists like I am, it won't work.

frankharrison-wj commented 6 years ago

Hmm, that could have been the issue in my case – to be honest I can't remember whether the old URL was returning a 404 or not! Thanks for posting though.

khalwat commented 6 years ago

Yes, Retour ONLY works once a 404 has already been thrown, as stated in the docs. The reason it works that way is for performance reasons; other plugins can slow down every request.

@Strikwerda I'm using the plugin on a number of very high traffic sites, and the redirects are most definitely working.

Either the URL you're trying to redirect is not throwing a 404, or the RegEx / url you're trying to redirect from is incorrect.