i dont know how to do...

Using a single web hosting account to host multiple sites

i dont know how to do...

Postby chinnee » Tue Mar 13, 2007 5:23 am

Hello,

In my site i installed Forums in forums folder. In root folder is free. So now i am using redirection from root folder to Forums folder. But now i want to do some changes. How can i do that. I want to make subdomain as forums.domain.com and i want to use current forums folder as root folder to the subdomain. How can i do it....

www.domain.com ==> www.domain.com/forums

now i want to use a subdomain
http://forums.subdomain.com for FORUMS
www.domain.com for others...
chinnee
 
Posts: 4
Joined: Mon Mar 05, 2007 12:18 am

Postby richardk » Tue Mar 13, 2007 9:58 am

If you have a hosting control panel you should be able to add the forums sub domain without any mod_rewrite. Then remove the redirect.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

i did it

Postby chinnee » Tue Mar 13, 2007 7:53 pm

hello sir,

in control panel already i added a subdomain forums.domain.com. I put forums in Forums folder under root. when i open my site http://www.postnread.com it will goes to http://www.postnread.com/forums, because i am using a redirection in root folder. In the same way i am using redirection for subdomain also. Now i dont want any redirection from my subdomain. I want to show my forums when visit to http://forums.postnread.com

Please Help me
chinnee
 
Posts: 4
Joined: Mon Mar 05, 2007 12:18 am

Postby richardk » Wed Mar 14, 2007 8:36 am

i am using a redirection in root folder. In the same way i am using redirection for subdomain also.

Get rid of the redirects.

Now i dont want any redirection from my subdomain.

Normally when you create a sub domain you are either given the option to, or are forced to, use a sub directory for it's document root. Set that directory to the directory with your forum in it. (Or move your forum files to the directory you are forced to use.)

If your hosting does not do that and your sub domain goes to your main document root, try the following in a .htaccess file in your main document root
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{HTTP_HOST} ^forums\.domain\.com$ [NC]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)$ /forums/$1 [QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 94 guests

cron