as the tile says i want to redirect xxx.com to www.xxx.com on my domain i searched google and tried(in .htaccess): Options +FollowSymlinks Rewriteengine On rewritecond %{http_host} ^proxyforfun.com [nc] rewriterule ^(.*)$ http://www.proxyforfun.com/$1 [r=301,nc] this doesnt seem to work, i put it at the root of my website. i check the apache config file and made sure that mod_rewrite was loaded(and it is) any ideas why this doesn work? or another way to do this? thanks
RewriteEngine on RewriteCond %{HTTP_HOST} ^proxyforfun\.com [NC] RewriteRule ^(.*)$ http://www.proxyforfun.com/$1 [R=301,L]
still doent work :/ i tried chowning it to different users also, just in case. doesnt work i ahve no idea why this wouldnt work :/ when i do a phpinfo() it does indeed show that mod_rewrite is loaded any ideas?
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^proxyforfun\.com RewriteRule (.*) http://www.proxyforfun.com/$1 [R=301,L] </IfModule> Code (markup): i don't see why this wouldn't work, it's baically what Nintendo wrote for you. Give it a try.
i tried putting that in the .htaccess file, still doesnt work, when i type without the www it still loads without redirecting to www domain i have no earthly clue why this would happen
E-Mail your web host! And try this test Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^wacko\.html$ index.XXX [L] If domain.com/wacko.html doesn't show the same thing as index.XXX (whatever extension is) then you don't have it!!
all is now good, had to set the option: AllowOverride All in httpd.conf so now it works thanks a bunch