site.com redirect to www.site.com {solved}

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
izzysanime

site.com redirect to www.site.com {solved}

Post by izzysanime »

Hi,

Someone told me before, but I cant find the info, how do i redirect a person who entered site.com, change to www.site.com ?

I have tried

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]

but then the server says an .htaccess error occured (internal server error 500)

thanks,
Josh
Last edited by izzysanime on Wed Jul 25, 2007 7:38 pm, edited 1 time in total.
izzysanime

Re: site.com redirect to www.site.com

Post by izzysanime »

never mind, i think i got it working now, I thought that transmit (mac) set to auto transfer mode would work just fine, but apparently not, and i manually set the mode to ASCII and it works fine now.

thanks
Josh
Post Reply

Return to “The Lounge”