25% OFF!

Use code 25OFFER at checkout.
Sign up Login

How do I redirect a subdomain to a subfolder? Print

  • redirect subdomain, subfolder
  • 11

How do I redirect a subdomain to a subfolder?

 

You can use htaccess to redirect a subdomain to a subfolder using the following example:

RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com
RewriteRule ^(.*)$ http://domain.com/subfolder/$1 [R=301]




Was this answer helpful?

« Back