David Sankovsky
asked on
htaccess 301 rredirect with hebrew and %d7 as part of the URL
Dear Experts,
I have a client who rebuilt his website, and asked us to do some URL redirects for him. but a certain link I get stumped with, I tried encoding, decoding and everything I could think of to make that work, but still it refuses to work!
Site is hosted on cPanel with Apache WebServer, all redirects except for this one works fine.
Original link:
https://site.tld/category/מדפסות/מדפסות-משולבות/מדפסות-משולבות-לייזר-שח%d7
(Cleints says that the %d7 must be part of the matched URL for SEO reasons)
should redirect to
https://site.tld/category-office-products/מדפסות-לייזר/
Any help would be greatly appriciated.
I have a client who rebuilt his website, and asked us to do some URL redirects for him. but a certain link I get stumped with, I tried encoding, decoding and everything I could think of to make that work, but still it refuses to work!
Site is hosted on cPanel with Apache WebServer, all redirects except for this one works fine.
Original link:
https://site.tld/category/מדפסות/מדפסות-משולבות/מדפסות-משולבות-לייזר-שח%d7
(Cleints says that the %d7 must be part of the matched URL for SEO reasons)
should redirect to
https://site.tld/category-office-products/מדפסות-לייזר/
Any help would be greatly appriciated.
Please provide basic translation of your text. As want to check relation between previous and new URL
Did you try to URL encode the hebrew path parts?
מדפסות-לייזר will become
%D7%9E%D7%93%D7%A4%D7%A1%D 7%95%D7%AA -%D7%9C%D7 %99%D7%99% D7%96%D7%A 8
and the URL
https://site.tld/category-office-products/%D7%9E%D7%93%D7%A4%D7%A1%D7%95%D7%AA-%D7%9C%D7%99%D7%99%D7%96%D7%A8/
will become
https://site.tld/category/%D7%9E%D7%93%D7%A4%D7%A1%D7%95%D7%AA/%D7%9E%D7%93%D7%A4%D7%A1%D7%95%D7%AA-%D7%9E%D7%A9%D7%95%D7%9C%D7%91%D7%95%D7%AA/%D7%9E%D7%93%D7%A4%D7%A1%D7%95%D7%AA-%D7%9E%D7%A9%D7%95%D7%9C%D7%91%D7%95%D7%AA-%D7%9C%D7%99%D7%99%D7%96%D7%A8-%D7%A9%D7%97%d7
מדפסות-לייזר will become
%D7%9E%D7%93%D7%A4%D7%A1%D
and the URL
https://site.tld/category-office-products/%D7%9E%D7%93%D7%A4%D7%A1%D7%95%D7%AA-%D7%9C%D7%99%D7%99%D7%96%D7%A8/
will become
https://site.tld/category/%D7%9E%D7%93%D7%A4%D7%A1%D7%95%D7%AA/%D7%9E%D7%93%D7%A4%D7%A1%D7%95%D7%AA-%D7%9E%D7%A9%D7%95%D7%9C%D7%91%D7%95%D7%AA/%D7%9E%D7%93%D7%A4%D7%A1%D7%95%D7%AA-%D7%9E%D7%A9%D7%95%D7%9C%D7%91%D7%95%D7%AA-%D7%9C%D7%99%D7%99%D7%96%D7%A8-%D7%A9%D7%97%d7
ASKER
@shalomc indeed I have, Didn't work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
But how does your .htaccess look like now?