Behiry
Behiry

Reputation: 573

Why this htaccess redirect doesn't work?

Although many redirects work fine on my Wordpress site, there are many others that don't work like this:

RewriteRule ^%D8%A7%D9%84%D9%83%D8%B1%D8%A7%D8%A8-%D9%83%D9%8A%D9%83-%D9%81%D8%B7%D8%A7%D8%A6%D8%B1-%D8%A7%D9%84%D9%83%D8%A7%D8%A8%D9%88%D8%B1%D9%8A%D8%A7/$ http://www.allabout-cook.com/%D9%81%D8%B7%D8%A7%D8%A6%D8%B1-%D8%A7%D9%84%D9%83%D8%A7%D8%A8%D9%88%D8%B1%D9%8A%D8%A7/ [R=301,L]

So, what's the problem?

Upvotes: 0

Views: 25

Answers (1)

anubhava
anubhava

Reputation: 785531

You can use this rule as your top redirect rule:

RewriteEngine On

RewriteRule ^الكراب-كيك-فطائر-الكابوريا/?$ http://www.allabout-cook.com/فطائر-الكابوريا/ [L,B,NE,R=301]

It is important to keep both B and NE flags in this rule.

References:

Upvotes: 1

Related Questions