Subdomain redirection to directory site on an additional domain name

I was questioning what is mosting likely to be the most convenient means to do the adhering to ;

Point wibble.site1.com to site2.com/ directory site/

So that wibble.site1.com/ index.php will certainly read from site2.com/ directory/index. php

Any advice would certainly be substantially valued, virtually every little thing I have actually located online aids you leap around within your very own domain name or obtains you to the origin of an additional domain name.

0
2019-05-18 23:20:58
Source Share
Answers: 1

If you have accessibility to wibble.site1.com and also if its web server is Apache, you can a .htaccess with this:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteCond %{HTTP_HOST} ^wibble\.(.+)$ [NC]
  RewriteRule ^(.*)$ http://site2.com/directory/$1 [R=301,L]
</IfModule>

It needs to function.

0
2019-05-21 09:19:20
Source