Try this
Code:RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your_domain.com$ RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]
Try this
Code:RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your_domain.com$ RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]
mmm i am a bit confused. could you please insert my two URLs i am wanting to redirect into that code? thanks :)
RewriteEngine on
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^gamenet\.net\.au\/?$ "http\:\/\/gamenet\.net\.au\/" [R=301,L]
RewriteEngine on
RewriteCond %{HTTP_HOST} !^http://gamenet.net.au/$
RewriteRule ^(.*)$ http://www.gamenet.net.au/$1 [R=301]
I added that code. and look what it did.
gamenet.net.au
Please help. i want to fix it urgently.
I could not leave my site like that so here is what is said.
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
Do you have any idea what i did wrong?
Sorry - for the multiple posts.
Try this code, exactly as is.
RewriteEngine ON
RewriteCond %{HTTP_HOST} ^gamenet\.net\.au [NC]
RewriteRule ^(.*)$ http://www.gamenet.net.au/$1 [R=301,NC,L]
you sir. are a genius.
Would you be kind enough to explain a bit on how you did it. with the "/" etc.
i am wanting to add another one to the equation. this time i'm trying to change
http://www.gamenet.net.au/index.php?...ndex&cPath=106
to somethign like
http://www.gamenet.net.au/xbox360