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

How do I use .htaccess to rewrite this URL?

Discussion in 'White Hat SEO' started by loginname, May 11, 2010.

  1. loginname

    loginname Regular Member

    Joined:
    Oct 1, 2008
    Messages:
    371
    Likes Received:
    13
  2. johnwho

    johnwho Regular Member

    Joined:
    Sep 19, 2009
    Messages:
    255
    Likes Received:
    36
    Occupation:
    freelancer
    Location:
    Republika ng Pilipinas
    here ya go!
    Code:
    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^[URL]http://www.mysite.com/this_is_a_page.php[/URL] [nc]
    rewriterule ^(.*)$ [URL]http://www.mysite.com/this_is_a_page/[/URL]$1 [r=301,nc]