anarchoi Posted February 23, 2008 Share Posted February 23, 2008 ok here is my situation: i have a forum where url's looks like http://www.mysite.com/forums/viewforum.php?f=16 Since i now have subdomains, i changed the part in bold so the url's now looks like this: http://forums.mysite.com/viewforum.php?f=16 the problem is that a lot of my members have bookmarked the old address (http://www.mysite.com/forums/) and are now having problem with cookies since the url in my config is set to forums.mysite.com i'd like to redirect anyone who access mysite.com/forums/**** to the new url @ forums.mysite.com/**** BUT is it possible to redirect them to the SAME PAGE they were on and NOT just redirect them to the root of www.mysite.com/forums/ so they don't loose the page they were currently viewing example: http://www.mysite.com/forums/viewforum.php?f=16 would redirect to http://forums.mysite.com/viewforum.php?f=16 and NOT TO: http://forums.mysite.com/ i'm a newbie with htaccess, so could someone please give me a working code that would do that? thanks a lot!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.