.htaccess - Redirecting subdomain from an alias domain -


so have been searching net along site regarding htaccess redirections, have yet not managed find solution myself (it may not possible).

so scenario this: have bought cheap host, comes subdomain, has ability add own domain alias it. right can access site using: subdomain.hostprovider.com , mydomainasalias.com

what wish achieve here, able redirect subdomain domain alias random page on random site.

so subdomain.mydomainasalias.com 2ndsubdomain.subdomain.hostprovider.com

i have tried this:

rewriteengine on rewritecond %{http_host} ^subdomain\.mydomainasalias\.com$   [nc] rewriterule ^ http://randomsite.com/asd  [l,r] 

amongst other things, achieve this, have yet not succeeded. possible?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -