Mod Rewrite Help? .htaccess

Discussion in 'Programming' started by Josh-H, Jul 15, 2007.

  1. #1
    Josh-H, Jul 15, 2007 IP
  2. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #2
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^myurl\.com$ [NC]
    RewriteRule ^(.*)$ http://www.myurl.com/$1 [R=301,L]
     
    ansi, Jul 15, 2007 IP
    Camay123 likes this.
  3. Josh-H

    Josh-H Active Member

    Messages:
    406
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Great +REP.
     
    Josh-H, Jul 15, 2007 IP