i have a new question...
I have 2 domains:
www.redpicasso.com
and
xtreme-bg.net
for redpicasso.com i'm using:
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.redpicasso\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.redpicasso\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}C:/home/%2%{REQUEST_URI}/ -d
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.redpicasso\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.redpicasso\.com$ [NC]
RewriteRule ^(.*)$ C:/home/%2/$1 [QSA,L]
now i want to use the secound domain without changeing of the URL, in other topic i found code similar to this:
- Code: Select all
RewriteCond %{HTTP_HOST} ^(www\.)?xtreme-bg\.net$ [NC]
RewriteRule ^$ C:/home/bgxtreme/ [QSA,L]
RewriteCond %{HTTP_HOST} ^(www\.)?xtreme-bg\.net$ [NC]
RewriteRule ^(.*)?$ C:/home/bgxtreme/%{REQUEST_URI} [QSA,L]
It works fine, but the url changes to www.redpicasso.com/home/bgxtreme/ and i don't want that
I've tried with:
- Code: Select all
RewriteCond %{HTTP_HOST} ^(www\.)?xtreme-bg\.net$ [NC]
RewriteRule ^$ C:/home/bgxtreme/ [QSA,L]
RewriteCond %{HTTP_HOST} ^(www\.)?xtreme-bg\.net$ [NC]
RewriteRule ^(.*)?$ C:/home/bgxtreme/%{REQUEST_URI}-d
This code doesn't change the URL but it return ERROR 404 "The webpage cannot be found"...
Can somebody help me? Please
Thank You!