Forum Moderators: buckworks & webwork

Message Too Old, No Replies

Subdomains

Need help. Newbie here.

         

Julian

12:30 am on Feb 6, 2003 (gmt 0)

10+ Year Member



Hi people:

I just moved my website from a server where I had subdom ains set up and working automatically to another one where they set up the subdomains but leave the "make them function" to you. I am using the FP SE in my site, so what should, how should I do it via .htaccess file? My specific question is how do I write the directive so that anyone writing: main.mydomain.org goes to www.mydomain.org/main

Any help appreciated.

JC

Jello

1:03 pm on Feb 6, 2003 (gmt 0)

10+ Year Member



I'm no expert at this, but this should do the trick:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteCond %{HTTP_HOST} ^main.mydomain.org$
RewriteCond %{REQUEST_URI}!^/main/
RewriteRule (.*) /main/$1