Subdomain to domain folder
Tell me if it is possible to implement it... We have a resource site.com and ext.site.com... it is necessary that ext.site.com opened on site.com/ext... Is it really possible through mod_rewrite?
Why do you need the weight of the site? ext.test.com left for test.com for search engines...
0
1 answers
To ext.site.com opened on site.com/ext.
+
what would be the weight of the site ext.test.com left for test.com for search engines.
Standard 301 redirect-substitute your domains and so on...
301 redirect from a domain to a folder on another domain
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^si-te\.ru$ [NC]
RewriteRule ^(.*)$ http://www.site.ru/si-te/ [R=301,L]
*UPD by comment
RewriteCond %{HTTP_HOST} ^ext.test\.com$ [NC]
RewriteRule ^(.*)$ http://site.com/ext/ [R=301,L]
Or https
- as you need it there.
1
Author: Coder, 2019-12-10 11:14:32