compwiz02 - 4:18 am on Sep 27, 2013 (gmt 0) [edited by: phranque at 5:18 am (utc) on Sep 27, 2013]
I want users who are searching for www.example.com/support/* to be directed to www.example.com/forums/
But I also want any url with /support/ to redirect.
www.example.com/support/forum/this-game-is-great should redirect to www.example.com/forums/this-game-is-great
www.example.com/support/how-do-i-login should redirect to www.example.com/forums/how-do-i-login
www.example.com/support/general-forum/what-events-are-happening-today should redirect to www.example.com/forums/what-events-are-happening-today
I just want to redirect anything with "support" in it to go to "forums"
I've got /forums/ right underneath the root folder so the path looks like this: root/forums/
The .htaccess file is inside the /forums folder. Should it be in that subfolder or directly within the root directory?
Here is the code I am using for the redirect:
# Redirect old forum path to new forum path
RewriteRule ^support/(.*)$ http://www.example.com/forums/$1 [R=301,L]
No, my website is not "example.com" It's just a placeholder. But I'm wondering if that is the right code to use? and is the file located in the right place on the server?
[edit reason] Please Use example.com [webmasterworld.com] [/edit]
[edited by: phranque at 5:18 am (utc) on Sep 27, 2013]