Under the main public_html folder lies all the files for my site, including .htaccess. I added redirect 301 / http://www.domain.com/ under neath the code and it won't work, why not? Derek
thats the one I'm using...I think it's the same as the public_html but I'm using the www folder one. Derek
Try Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^$ http://www.domain.com/ [R=301,L] domain.com/.htaccess
I don't know if it'll fix it, change RewriteRule ^$ to RewriteRule ^index.XXXX$ XXXX being what ever the extension is.
Have you done mod_rewrite before? Try this test... Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^index\.wacko$ index.WHATEVER [L] Change WHATEVER to the current extension, upload it, then go to domain.com/index.wacko If that doesn't work then I don't think mod_rewrite will work. And mod_rewrite doesn't work on Windows servers.
Hi, Make sure you upload the .htaccess file in ASCII mode. If you don't know, upload the file as htaccess.txt and rename it to .htaccess when it is on the server. Did you ask your hosting company whether they allow you to use .htaccess ? Jean-Luc
no I haven't asked them that. But .htaccess was already a file in that folder...it was there automatically... also, with nintendo's last post, the .htaccess forlder then has no domains in it so how does it know where to go?
The domain name isn't needed in mod_rewrite changing URls, since it's all on the same URL. Only when you do 301 redirect. Is it at domain.com/.htaccess or domain.com/whatever/.htaccess
are you trying to redirect the whole domain to another? redirect 301 /anydir/index.php http://www.domain.com/index.php would sent people looking for that page to the other domain main page. so to redirect one domain to another i would have thought /index.xxx would be needed. redirect 301 /index.xxx http://www.domain.com/index.xxx