Reputation: 11
Please help, I need my second domain simplify URL on first domain like this :
http://second.domain/"username_variable"
showing
http://first.domain/jobseeker/site/cv/username/"username_variable"
The second domain is an add-on domain to the first domain.
Can I do that with htaccess?
Upvotes: 1
Views: 50
Reputation: 143906
In the htaccess file in your second domain's document root:
RewriteEngine On
RewriteCond %{HTTP_HOST} second.domain [NC]
RewriteRule ^(.*)$ http://first.domain/jobseeker/site/cv/username/$1 [L,R=301]
Upvotes: 1