: Subdomain redirection to directory on another domain I was wondering what is going to be the easiest way to do the following; Point wibble.site1.com to site2.com/directory/ So that wibble.site1.com/index.php
I was wondering what is going to be the easiest way to do the following;
Point wibble.site1.com to site2.com/directory/
So that wibble.site1.com/index.php will read from site2.com/directory/index.php
Any guidance would be greatly appreciated, pretty much everything I have found online helps you jump around within your own domain or gets you to the root of another domain.
More posts by @Bryan171
1 Comments
Sorted by latest first Latest Oldest Best
If you have access to wibble.site1.com and if its server is Apache, you could a .htaccess with this :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^wibble.(.+)$ [NC]
RewriteRule ^(.*)$ site2.com/directory/ [R=301,L]
</IfModule>
It should work.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.