Forum Moderators: phranque

Message Too Old, No Replies

Urgent Redirect 224 pages to .html using .htaccess

I change recently permitlink in wordpress To /%postname%.html

         

SaleF

1:56 am on Sep 17, 2012 (gmt 0)

10+ Year Member



Hi I have change accidentally my web site url link format it was
Mysite/PoastName/
Now are
Mysite.com/PoastName.html

surely I will got 404 error on all 224 Page on the site
I tried to use redirect function on one page as test but i failed
Most Of links are using UTF-8 format because most Link My site are not Latin letters it's looks like this

Mysite.com/%D8%AA%D8%AD%D9%85%D9%8A%D9%84-%D8%A7%D9%88%D8%A8%D8%B1%D8%A7-%D8%A7%D9%84%D8%B9%D8%B1%D8%A8%D9%8A.html

I done this change from hour ago even if I back to previous URL format I'll still got 404 in google search result .

I know this is way using RewriteCond in .htaccess but I can't figure out it yet

SaleF

2:13 am on Sep 17, 2012 (gmt 0)

10+ Year Member



OK I found the solution
It's Looks like I was wrong .htaccess files accept UTF-8 character or none Latin letters ...
I just past the page name as it appear on fire-fox to redirect and it work ..