301 Redirect - Make it go to my site. Help please !

Discussion in 'Site & Server Administration' started by noobie2shoes, Jun 30, 2008.

  1. #1
    Hi All,

    I am using this code for a 301

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www..*
    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} ^([^.]*).(com|com/)
    RewriteRule ^.*$ http://www.%1.%2%{REQUEST_URI} [R=301,L]

    It is working by redirecting my site to www.sitename.com (someone elses site)

    but my site is actually www.sitename.com.au

    I obviously have to to put the .au somewhere in the code.

    I tried changing this part (com|com/) and put .au after both and each one but it didnt work. :confused:

    Anyone know where to put it?
     
    noobie2shoes, Jun 30, 2008 IP