how to 301 from sub.dom.com/fold/aa.html to dom.com/aa.html?

Discussion in 'Search Engine Optimization (SEO)' started by sarah.kho, Jul 10, 2010.

  1. sarah.kho

    sarah.kho New Member

    Joined:
    Jul 10, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    Can you please let me know whether it is possible to to use 301 redirect to redirect a page like sub.dom.com/fold/aa.html to dom.com/aa.html?

    If it is possible, can you please let me know the syntax for the .htaccess file to do this?

    I was not able to find anything to use for redirecting a subdomain and subfolder link to another place.

    Thanks.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,346
    Likes Received:
    382
    Trophy Points:
    83
    Under the subdomain have an .htaccess file and have the following

    Code:
    Redirect 301 /fold/aa.html http://www.dom.com/aa.html
     
  3. sarah.kho

    sarah.kho New Member

    Joined:
    Jul 10, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Thank you for the help.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,346
    Likes Received:
    382
    Trophy Points:
    83
    The pleasure is all mine.
     
  5. johnny.dacu

    johnny.dacu New Member

    Joined:
    Jul 6, 2010
    Messages:
    88
    Likes Received:
    4
    Trophy Points:
    0
    I was preparing to open a post with this question. But I found the answer so I can only thank you
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice