![]() |
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. |
there are plenty of ways to redirect without using htaccess...
|
Quote:
|
bump for you
|
Wow, I am amazed that with all the genius we have floating around here, no one knows anything about .htaccess files? Damn, this industry is losing its edge. LOL
|
maybe they are all just fuckin their bitches, as i will do now
|
Does it help?
http://www.htaccesstools.com/ |
something like
Code:
RewriteEngine On |
The above example redirects all the traffic from one domain to another. As I understand, he wants to redirect /blog/ directory only, am I right?
|
Put the one I posted in the /blog/directory and it should work as advertised. I haven't had a chane to test it exactly like that.. my server's nic card has been going up and down.
|
Oh yes fusionx, you're right. I totally forgot he's talking about .htaccess, I always put all my mod_rewrites inside <VirtualHost> :)
|
All times are GMT -7. The time now is 09:36 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc