Hi. I recently moved an SMF forum from a sub-folder of one domain to its own domain. xxx.com/subfolder ----------> yyy.com How can I use htaccess to redirect all urls to the new domain so that it goes to the new page. For example let's say I had xxx.com/subfolder/index.php?topic=399.msg3382 I would want that redirecting to yyy.com/index.php?topic=399.msg3382 Thanks a lot.
following should work in .htaccess of old domain add the line redirect 301 /subfolder_to_previous_forum_on_old-domain http: // www. new domain .com/ all one line - remove spaces in URL of new domain above ! this should do exactly what you intend note old subfolder - starts with /subfolder - NO full URL then space then new location = FULL URL starting http