How do I "adapt and uncomment" this?

BrandontheGreat

Links @ helpmyrank.com
Aug 24, 2008
866
4
18
everywhere
How do I "adapt and uncomment" this:

PHP:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

?


Thanks in advance
 


Well uncomment would mean you just take out the # sign before the statement and don't keep and white space there either.

This ensures that your site is loading up as Example Web Page.

To make it work for your site just change out "example" for yourdomain if you have a .net or .org simply change out .com for .org (I know it's kinda logical).

I was gonna suggest another way to do that but actually that is the exact script I use on my site.
 
633775495275400070-doublefacepalm.jpg
 
Well uncomment would mean you just take out the # sign before the statement and don't keep and white space there either.

This ensures that your site is loading up as Example Web Page.

To make it work for your site just change out "example" for yourdomain if you have a .net or .org simply change out .com for .org (I know it's kinda logical).

I was gonna suggest another way to do that but actually that is the exact script I use on my site.

Thank you, man. Fixed.
 
I like to leave 'example.com' in mine cause I really don't want people coming to my sites.