n8kowald
Forum Replies Created
-
Forum: Plugins
In reply to: [Redirection] How to deal with apostrophes in source URL?Your redirect is correct. Must be something else.
- Do any of your redirects with this plugin work? Your non-regular expression ones?
- Do you have access to your PHP error log? The problem might be reported in there.
https://stackoverflow.com/a/4764452 - In ‘Tools > Redirection > Modules’, if you’re using .htaccess Apache redirects, try temporarily disabling them and using the WordPress module instead
Looks like you’ve tried this already but if not, try a non-regular expression redirect on:
/_blog/Inside_Flowers/post/Online_Marketing_for_Florists_Part_1_%E2%80%93_A_Website_You_Won%27t_Regret/
If this works and you need to find URLs for the other 404 pages you can use Chrome’s Dev Tools: (F12) > Network > (reload page).
Click the first item in the list and in the right hand side you can copy the ‘Request URL’: https://i.imgur.com/zoMJn73.pngForum: Plugins
In reply to: [Redirection] How to deal with apostrophes in source URL?I tested your redirects in my website and both work for me.
Have you checked the ‘Regular expression‘ checkbox?
This is required otherwise the ‘Source URL’ is taken literally.
Sorry, I forgot to say this in my original answer.Here’s a screenshot of my working redirect: https://i.imgur.com/YeDt6OY.png
Forum: Plugins
In reply to: [Redirection] How to deal with apostrophes in source URL?I ran into this problem today and saw the following in the documentation:
/tags/(.*?)-(.*?) => /tags/$1%20$2
<– replaces hyphens with spaces.A fix is to use a dot-star grouping, followed by the character you want to exclude, followed by another dot-star grouping.
This should work for you:
Source URL:/_blog/Inside_Flowers/post/(.*)(\%E2\%80\%99|')(.*)
Target URL:https://www.tesselaars.com/online-marketing-for-florists/
The second group
(\%E2\%80\%99|')
handles apostrophes encoded like%E2%80%99
and'
.