Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
301 views
in Q2A Core by
I have a domain www.site.com And I added a domain www.site2.com  How can glue domains through .htaccess

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>
Q2A version: version 1,5,3

Please log in or register to answer this question.

...