Mobile app version of vmapp.org
Login or Join
Cody1181609

: You can use a file called as .htaccess stealth redirection in order to redirect your website using the .htaccess. The code for the same is: RewriteCond %{HTTP_HOST} ^(www.example.com)?$ RewriteRule

@Cody1181609

You can use a file called as .htaccess stealth redirection in order to redirect your website using the .htaccess.

The code for the same is:

RewriteCond %{HTTP_HOST} ^(www.example.com)?$
RewriteRule ^(.*)$ example.com/subfoldername/ [P,L]


In case, you wish to host the subdomain on a different server then, you will have to add an A record pointing the subdomain to the IP address of the new server.

I am a bit confused regarding the question and will really appreciate if you can point out the exact requirements.

I have answered the question as per my understanding. Feel free to correct me in any case.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Cody1181609

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme