1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

.htaccess 301 question

Discussion in 'Search Engine Optimization (SEO)' started by Bartie, Jun 20, 2007.

  1. Bartie

    Bartie New Member

    Joined:
    Jun 19, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    Been trying to make redirect 301 from 1 domainname on my old webserver to a different dommainname on my new site. I'm also using subdomains, the subdomain names are the same.
    fe: sub1.domain1.com to sub1.domain2.com

    I tried countles redirect rules and combinations in the .htaccess on the old webserver but they don't seem to work. Mostly I'm getting: 500 ERROR: This is not the page you requested.
    This is a non-erronous page (500EP) used to display erronous pages (500!EP).

    Any suggestions?

    B.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Try
    Code:
    RedirectMatch 301 sub1.domain1.com sub1.domain2.com
     
  3. Bartie

    Bartie New Member

    Joined:
    Jun 19, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Tnx for the help shabbir.

    After more research it seemed .htaccess wasn't allowed in the directives of the host. So I had to do it in php :p So I didn't get to check out your redirect
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Thats the case with many web hosts
     

Share This Page