PDA

View Full Version : forumdisplay.php?# -> subdomain


vAsia
01-09-2012, 01:45 AM
Hello,

Let's say have have a "money" forum (id #4)
http://yourname.com/forumdisplay.php?4

How do I get my "money" forum to load in http://money.yourname.com

That way, my users don't have to dig through 100 of forums to find "money" forum, but they can load "money" forum by http://money.yourname.com

I am thinking about:
IF
url = money.yourname.com
Redirect to forumdisplay.php?4

Is there a way to have this setup?

HMBeaty
01-09-2012, 01:56 AM
Not sure if this will work or not, but you could try adding this to your .htaccess file:
redirect http://money.yourname.com http://yourname.com/forumdisplay.php?4

vAsia
01-09-2012, 04:49 AM
I have tried that but it didn't work, given that I have *.yourname.com CNAME yourname.com

kh99
01-09-2012, 12:15 PM
I have tried that but it didn't work, given that I have *.yourname.com CNAME yourname.com

I don't know exactly what that means (although I recognize it as something to do with DNS). But if a link that someone follows still has "money" in the url then I don't see why what HMBeaty posted wouldn't work, and if it doesn't have "money" in there then I don't see how you would know which forum to redirect to.

vAsia
01-09-2012, 12:35 PM
...