Hello. I need some help with .htaccess files thanks. I have my personal website at www.calumneilson.com, it also has lots of sub-pages where most of the visits come from. I now want to direct ALL traffic from www.calumneilson.com to www.calumneilson.com/blog So if someone went to www.calumneilson.com/page1.php it would redirect to www.calumneilson.com/blog But I want it so that links in the blog still work, so things like www.calumneilson.com/blog/post1 WONT redirect to www.calumneilson.com/blog I also want them to be 301 redirects. Thanks Calum
RewriteEngine On RewriteCond %{HTTP_REFERER} !^www.calumneilson.com [NC] RewriteRule /* www.calumneilson.com/blog [R,L] Code (markup): Try this and let me know if it works.
Hey, I think I remember you from somewhere, nevermind Thanks for helping, I tried this but now it goes to: http://www.calumneilson.com/home/calum/public_html/www.calumneilson.com/blog and then Firefox says: Thanks Calum