This thread is resolved. Here is a description of the problem and solution.
Problem: The client is unable to create a redirect from a URL containing an accented character to a URL without the accent. Solution: We recommend encoding the special character in the URL and using a relative path for the old URL. The correct redirect rule in the .htaccess file should look like this:
I have a link in french that is mydomain.pt/fr/categorie/plantes/plantes-dexterieur/
some clients, don't know how/why, access mydomain.pt/fr/catégorie/plantes/plantes-dexterieur/ (with accent on "catégorie") and the end blocked by my anti-spam plugin.
Why I can't create a redirect from /fr/catégorie/plantes/plantes-dexterieur/ to /fr/categorie/plantes/plantes-dexterieur/ ?
Thank you so much for the quick answer.
Since Yoast SEO has that capability I'll avoid at all cost to install a new plugin, hope you understand my point of view.
I need to find a way to have it working with YOAST because it also allows me to create 301 redirects...
I can totally understand, this is a super light plugin in my experience but, of course, if you have the premium version of Yoast, they also have this feature and I would definitely not install another plugin for a function I already have from an existing active plugin, just make sure that you have the premium version: hidden link
I'm not sure about Yoast redirection capacities but if you don't want to add any extra plugin, you can add those redirects manually into your htaccess.
- Access your server files via FTP or Cpanel
- Open your htaccess file (root level of your WP install)
- After the rewrite rules from WP (after the comment: # END WordPress) you can add your redirections
Here is a quick guide on how to create them: hidden link
It should look like this:
I tried to investigate further the issue. I used "Screaming Frog SEO spider" and scanned your FR site. I couldn't find any broken links to /catégorie (I have the free version which is limited to 500 URLs). So I'm not sure how visitors would land on those URLs. Do you have more information about that? Maybe in Search Console or Google Analytics? I'm trying to find if it's a broken link on your site or maybe an external link from another website.
Now to come back on the redirect, I'm not sure why YOAST won't let you use URL's with /fr.
- Can you write the redirect yourself? Or do you have to pick the page and Yoast creates it for you?
- Why would Yoast prevent URls with /fr? Do you have an error message?
Writing redirections in htaccess is pretty easy and requires no extra plugin.
If you still want to go through Yoast SEO Pro, I think you should contact their support.
On my side I created that sandbox for you: hidden link (auto-login)
You can install Yoast SEO Pro and try to replicate the issue if you want, that way I will be able to test it out myself and understand how their redirection feature works.
I think I know the issue.
1. Google is able to display accents in your browser but this special character should be encoded.
2. The old url should use "relative path" (without the domain name).
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.