|
Is there a way (using htaccess) to redirect all files within a directory to the exact same file name located in another directory?
Here is what happened. I set up a wp blog (www.household6life.com/blog) made several enteries and added a forum and social networking site plug in to wordpress. The problem is that becauseI added those plugins when you go to the forums it is under www.household6life.com/blog/forums/ which seems silly to me since this is now going from a personal blog to a social networking type site. I would rather it say something like www.household6life.com/hangout/forums/ in other words I want to rename the directory named blog to hangout. However, I have a lot of blog posts and such which will need to be redirected. I know that I can redirect all files in a directory to a specific file. But what I was wondering is if there is way to have each file redirect to the new directory name without having to enter a bunch of redirects in the htaccess. Almost like a wildcard of some sort? So www.mysite.com/blog/forum/yeehaw.html would redirect to www.mysite.com/hangout/forum/yeehaw.html
Basically so the browser will redirect any request with the /blog directory to the same file located in /hangout
__________________
PROUD Military Wife
Last edited by JeremyMiller; 06-25-2010 at 03:38 AM..
Reason: Removed links
|