Hi I recently moved a forum from domain.com/forum to domain.com I have found ways to 301 redirect the traffic but all of them hang onto the request in full, but just remove, /forum/. What i need to do is redirect domain.com/forum/index.php?search=newposts or domain.com/forum/profiles.php?edit etc., so everything requesting info from domain/forum, regardless of the request is redirected to domain.com/index.php Does that make sense? Any request to domain.com/forum, regardless of the request gets redirected to domain.com without the full address requested being carried over. Thanks
Please the following .htaccess in the subfolder that you want to redirect everything: redirect 301 / http://www.yourdomain.com/ Code (markup):
I need help with this same problem... I want to redirect visitors from old url (subfolder) to new url (main folder). old url is like: hxxp://www.yoursite.com/site/anything-blog-title/ i want to redirect it to: hxxp://www.yoursite.com/anything-blog-title/ The solution given above.. doesn't redirect to the post which visitor was trying to visit. It just redirects to the homepage..