Hey. I am having problems with taragana translator because it is sending some bad headers to search engines (like pragma no cache, must revalidate and so on). My website was pr5 (dropped to 4) but has hundreds of PR4, 3 2 urls. The translator created around 3000 sub urls and i need to redirect all them to the main page. i know how to do it via htaccess but one by one the filesize is going to be huge Does anyone know how can i redirect the following to main domain? http://www.domain.com/postname.hml/language to domain? Where language is /fr or /ja or /pt , /de and so on. Thanks a lot. Someone that can help me im willing to donate.
using php if you want to redirect any page or any site to another just just add this in site root or that page folder whic you want to redirect to another page <? header('Location: http://www.sitename.com'); ?> and save this with name index.php thats it other way is to add these lines in http://www.domain.com/postname.hml/language "langauge"
I mean the pages are created by a translator. i have no way to open them fisically. Any way to do this via htaccess file?
Yes, you can use rewrite for it. For example: RewriteEngine On RewriteRule (url-of-your-translated-page)/$ http://%{HTTP_HOST}/ [R=301,QSA,L] Code (markup): Url could be regular expression.