Forum Moderators: phranque
[another-domain.com...]
instead of
[another-domain.com...]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.another-domain\.com [OR]
RewriteCond %{HTTP_HOST} ^another-domain\.com
RewriteRule ^/(.*) /another-domain/$1
It'd be goul to say that the content it's under
[domain.com...]
for example
anyone could help...
thanks!
Nacho
Argentina
PD: No virtualhosting! I cannot touch the httpd.conf :)
Welcome to WebmasterWorld [webmasterworld.com]!
The problem is in your Rule - the leading slash on the pattern is not required in .htaccess.
RewriteRule [b]^([/b].*) /another-domain/$1
Do you have a RewriteBase directive in your .htaccess file?
Also, your notation, "/another-domain/$1" is confusing. This should be a canonical URL if it is indeed a different domain, and you should choose a 301 or 302 redirect:
RewriteRule ^(.*) http://www.example.com/$1 [R=301,L]
Jim
So the ^(.*)$ gives error if I don't use [R,L]. if anyone could help...
I'm new in the forum, seeing little I can say a good work is done here.
Sorry my english, plz.
Nacho