.htaccess question?

Discussion in 'White Hat SEO' started by zonecrash, Nov 3, 2009.

  1. zonecrash

    zonecrash BANNED BANNED

    Joined:
    Sep 30, 2009
    Messages:
    72
    Likes Received:
    70
    Hope for help with this one ?

    Code:
    http://www.yoursiteherer.com/yoursitehat-seo/newthread.php?do=newthread&f
    .

    and I would like that condition to be redirected back to the root

    Code:
    http://www.yoursiteherer.com/
    .
     
  2. johnwho

    johnwho Regular Member

    Joined:
    Sep 19, 2009
    Messages:
    255
    Likes Received:
    36
    Occupation:
    freelancer
    Location:
    Republika ng Pilipinas
    Try this man..

    Code:
    Options +FollowSymlinks
     RewriteEngine on
     rewritecond %{http_host} ^http://www.yoursiteherer.com/yoursitehat-seo/newthread.php?do=newthread&f [nc]
     rewriterule ^(.*)$ http://www.yoursiteherer.com$1 [r=301,nc] 
     
    • Thanks Thanks x 1
  3. zonecrash

    zonecrash BANNED BANNED

    Joined:
    Sep 30, 2009
    Messages:
    72
    Likes Received:
    70
    thanks ... much appr.

    reps given..:)
     
  4. Leads Provider

    Leads Provider Junior Member

    Joined:
    Jun 5, 2009
    Messages:
    101
    Likes Received:
    11
    Occupation:
    [email protected]
    Location:
    [email protected]
    Thanks it helped me too. Reps given...