Mobile app version of vmapp.org
Login or Join
Bryan171

: 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

@Bryan171

Posted in: #Domains #Redirects

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme