Point subdomain to subdomain

cyberale

New member
Joined
Oct 21, 2014
Messages
2
Hello,

Is it possible to point some external subdomain (subsite1.sourcedomain.com) to a local subdomain (subsite1.destdomain.com) ?

Thanks !

Sergio
 
Probably with ServerAlias setting. Add the subdomain as a regular domain and use domain pointer.
 
Subdomains

Thank you scsi !!!

Can you be a little more specific on what to do ? I'm a total newbie in DA, as I have never used it... This is exactly what I'm looking for:

origindomain.com hosted in external server
destdomain.com hosted in actual server with DA

I need to:
site1.origindomain.com --> site1.destdomain.com
site2.origindomain.com --> site2.destdomain.com
.
.
.
site11.origindomain.com --> site11.destdomain.com

Sites are phisically hosted on siteN.destdomain.com... Must preserve origindomain.com in url's...

Thanks !

Sergio Alejandro
 
And you can use the below htaccess

Options +FollowSymLinks
RewriteEngine on
#
# Redirect blog.example.com to wwwexamplecom/blog
RewriteCond %{HTTP_HOST} !^blog\.example\.com
RewriteCond %{HTTP_HOST} .
RewriteRule (.*) http://wwwexamplecom/blog/$1 [R=301,L]
#
# Redirect client requests for index.htm to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.htm\ HTTP/
RewriteRule ^(([^/]+/)*)index\.htm$ http://wwwexamplecom/$1 [R=301,L]
#
# Redirect non-www to www
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*) http://wwwexamplecom/$1 [R=301,L]
 
Last edited:
Back
Top