PDA

View Full Version : Subdomains


Tidane
8-8-03, 03:54 PM
I have a subdomain, http://forums.thefinalhaven.com, and it works fine. I want to know if there is something I can put in my code so that when the links are clicked on, the url goes to http://forums.thefinalhaven.com/whatever instead of http://www.thefinalhaven.com/forums/whatever. Here is why my .htaccess file looks like:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} forums.thefinalhaven.com
RewriteCond %{REQUEST_URI} !/forums/
RewriteRule ^(.*)$ forums/$1 [L]
RewriteCond %{REQUEST_URI} !errors/

B&T
8-8-03, 03:56 PM
The obvious answer is to move your subdomain out of the forums folder to the whatever folder. Or am I missing the question?

Cooldude
8-8-03, 04:01 PM
to do that you need to log in then click admin cp then click Board Settings then click Basic Config then you see Board Address put http://forums.thefinalhaven.com then you also see HTML URL
For images, etc put http://forums.thefinalhaven.com/html then one more Upload URL put http://forums.thefinalhaven.com/uploads then click submit changes that should work

Tidane
8-8-03, 04:25 PM
If I put this in, would it work, or does it have to be a path, not URL?

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} subdomain.thefinalhaven.com
RewriteCond %{REQUEST_URI} http://site.com
RewriteRule ^(.*)$ forums/$1 [L]
RewriteCond %{REQUEST_URI} !errors/

I want to have a subdomain showing content from another site. Yes, both sites are mine.

Maybe [REQUEST_URL}...?



I tried to do what you said, and it worked, but it wanted a passoword for the uploads directory. I think I know why, but thanks.