Forum Moderators: phranque
I’ve just purchased some hosting for a site of mine and I’ve just moved everything across but now I’m having problems getting the subdomain working.
The main site works fine (ht tp://www.example.com) and this relates to folder “public_html/”, which is where I have placed my .htaccess rewrite. However, my subdomain (ht tp://forums.example.com) relates to “public_html/forums/” which don’t function properly as it's affected by the .htaccess file (If I remove the .htaccess the forums work fine).
The .htaccess file from public_html root is as follows:
------------------------------------------
RewriteEngine on
RewriteRule ^([^_]+)_([^/]+)/([^_]+)_([^/]+)/([^_]+)_([^/]+)/?$ /index.php?$1=$2&$3=$4&$5=$6 [L]
RewriteRule ^([^_]+)_([^/]+)/([^_]+)_([^/]+)/?$ /index.php?$1=$2&$3=$4 [L]
RewriteRule ^([^_]+)_([^/]+)/?$ /index.php?$1=$2 [L]
RewriteRule ^index\.html$ /index.php [L]
------------------------------------------
Could someone please tell me how I can exclude the forums subdomain?
Check this post out: [webmasterworld.com...]
RewriteCond %{HTTP_HOST} !^forums\.
RewriteRule %{HTTP_HOST} ^forums\.
RewriteRule .* - [L]
RewriteRule %{HTTP_HOST} ^forums\.
RewriteRule .* - [S=4]
Jim