How can I create a 301 redirect with non-English characters in the URL?
How can I create a 301 redirect with non-English characters in the URL? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the How can I create a 301 redirect with non-English characters in the URL? error on your web browser. Problem :
Solution :
We hope that this article has helped you resolve the redirects, 301-redirect, error in your web browsers. Enjoy browsing the internet uninterrupted!
I would like to do 301 redirect from http://www.test.de/kollektion/b%C3%BCgel%20bh
to http://www.test.de/bhs/bugel-bhs+balconette
.
I tried to create a redirection rule, but it's not working even though I converted %C3%BCgel%20bh
into ASCII code.
To get this to work you will need to use the correct characters rather then the URL encoded characters.
Try adding the following in apache configuration file (apache2.conf/httpd.conf/apache.conf dependent on your distro)
AddDefaultCharset UTF-8
After restart apache using:
sudo service httpd restart
or
sudo service apache2 restart
Then in your htaccess file try the following:
Options +FollowSymLinks
Redirect 301 http://www.test.de/kollektion/bügel[s]bh http://www.test.de/bhs/bugel-bhs+balconette
Comments
Post a Comment