View Single Post
Old 11-17-2006, 04:28 PM  
minusonebit
So Fucking Banned
 
Join Date: Feb 2006
Posts: 7,391
Need Some htaccess Help

Ok, so here is the situation.

I have a blog, at domain.com/blog. A while ago, I registered domain.us that I want to use for the blog and devote the entire site to it. The new blog is up and running so I want to redirect the old one to it. The old one was powered by Blogger, which left hundreds of files on the server.

I have tried the following (in an htaccess file on the old domain in the blog directory): "redirect / http://www.domain.us

But this dosent work right. It redirects hits to the index file properly, but if I visit, say domain.com/blog/this_perma_link_or_that_one.htm, it redirects to domain.us/this_perma_link_or_that_one.htm

How do I just redirect all traffic to a given directory and all directories under it to a specified URL, in this case to the index of domain.us.
minusonebit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote