Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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.

share|improve this question
    
Can you add what you've tried to your question? –  dan Jan 31 at 5:04
    
@dan as the first sentence but it's not redirected. –  Dexter Moregan Jan 31 at 7:55
add comment

1 Answer

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
RewriteEngine on
Redirect 301 http://www.test.de/kollektion/bügel[\s]bh http://www.test.de/bhs/bugel-bhs+balconette
share|improve this answer
1  
Nice one. Was hoping the OP would provide his .htaccess code so we could see the redirect link, but you decoded it for him. –  dan Feb 1 at 1:55
    
@LiamSorsby bügel[\s]bh in the redirection rule that you provide turn into alien language when i put it into httpd.conf of my site. –  Dexter Moregan Feb 3 at 8:46
    
@DexterMoregan the bottom should be in your htaccess file not your httpd.conf file. Only the AddDefaultCharset UTF-8 should be added into your httpd.conf –  Liam Sorsby Feb 3 at 9:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.