I'm about to post a project on scriptlance but...

Discussion in 'Site & Server Administration' started by ly2, Jun 22, 2007.

  1. #1
    ly2, Jun 22, 2007 IP
  2. YourSiteKindaBlows

    YourSiteKindaBlows Peon

    Messages:
    166
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do a google search and type in .htaccess mod rewrite.
     
    YourSiteKindaBlows, Jun 22, 2007 IP
  3. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Heh...you don't need to hire somebody to do it!

    Just put this in .htaccess file at document root:
    
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
    
    Code (markup):
    Replace domain and com to required values.

    Gren rep. appreciated. ;)
     
    agnivo007, Jun 23, 2007 IP