.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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -