PDA

View Full Version : htaccess redirect /forum to subdomain


RichieBoy67
02-11-2017, 01:25 AM
I posted earlier about redirects but now I want to make it simple. I need to redirect all urls from

thiswebsite.com/forum

to

forum.thiswebsite.com

Can someone help me with the rewrite rules for this? I mainly want the forums, threads and posts..the rest is not important.

Thanks

Kane@airrifle
02-11-2017, 07:55 AM
Should be as simple as changing the htacces on thiswebsite.com/forum to this?

RewriteEngine on
RewriteRule ^(.*)$ http://forum.thiswebsite.com/$1 [R=301,L]

RichieBoy67
02-11-2017, 01:11 PM
Should be as simple as changing the htacces on thiswebsite.com/forum to this?

RewriteEngine on
RewriteRule ^(.*)$ http://forum.thiswebsite.com/$1 [R=301,L]
Thanks my friend! I will try that!


##trying to convert that to web.config but not working..