RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Rewrite Rule for eng.domain-name.net
RewriteCond %{HTTP_HOST} eng.domain.com$
RewriteCond %{REQUEST_URI} !eng/
RewriteRule ^(.*)$ eng/$1
# Rewrite Rule for fra.domain-name.net
RewriteCond %{HTTP_HOST} fra.domain.com$
RewriteCond %{REQUEST_URI} !fra/
RewriteRule ^(.*)$ fra/$1
# Rewrite Rule for ger.domain-name.net
RewriteCond %{HTTP_HOST} ger.domain.com$
RewriteCond %{REQUEST_URI} !ger/
RewriteRule ^(.*)$ ger/$1
# Rewrite Rule for spa.domain-name.net
RewriteCond %{HTTP_HOST} spa.domain.com$
RewriteCond %{REQUEST_URI} !spa/
RewriteRule ^(.*)$ spa/$1
define("IMAGES", BASEDIR."images/");
define("IMAGES", "http://XXX.DOMAIN.COM/images/");
Quote
chbe wrote:
Just so that I understand this right. Do you in the same fusion installation have one domain.com that points to the root folder and another sub.domain.com that points to the same fusion installation but to the forum folder?
I have given this some more thoughts and I think this is not possible.
sub.domain.com sees the forum folder as a root folder that means that it cant access any files outside for instance the image folder and other files. This is causing your errors.
My example before with the .htaccess file only shows how you can forward a sub domain in a folder structure. That folder though needs to have its own complete fusion installation. Sorry
Quote
chbe wrote:
On my site i have several different sub domains pointing to the same site
I have set up my subdomains by editing the zonefiles of my domains
If you use a .htaccess file you should write it like thisCode Download sourceRewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Rewrite Rule for machine.domain-name.net
RewriteCond %{HTTP_HOST} sub.domain.com$
RewriteCond %{REQUEST_URI} !folder/
RewriteRule ^(.*)$ folder/$1
Change sub.domain.com to your own
Change folder to your real folder name
Put the .htacces file in the root directory.
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Rewrite Rule for machine.domain-name.net
RewriteCond %{HTTP_HOST} sub.domain.com$
RewriteCond %{REQUEST_URI} !folder/
RewriteRule ^(.*)$ folder/$1
Category Forum
Official Core Support - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions