Urgent Help In Redirection

Discussion in 'Site & Server Administration' started by cheetuh, Jun 6, 2008.

  1. #1
    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.
     
    cheetuh, Jun 6, 2008 IP
  2. b4bilal

    b4bilal Peon

    Messages:
    91
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    b4bilal, Jun 7, 2008 IP
  3. cheetuh

    cheetuh Peon

    Messages:
    410
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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?
     
    cheetuh, Jun 7, 2008 IP
  4. petrh

    petrh Peon

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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.
     
    petrh, Jun 11, 2008 IP