Using Ubuntu 12.04 running wordpress.
I want to add subdomain to redirect any sub-directory or page.
For example: My site: ibrahimmumcu.com Redirect: kisa.ibrahimmumcu.com to ibrahimmumcu.com/any/subdirectory
How can I do that?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
another best solutions https://www.digitalocean.com/community/questions/redirect-subdomain-to-another-website
I found my best solution.
Added these lines to .htaccess file.
simple way to do this is a 2-part solution:
in the .htaccess:
in the vhost config, add (below ServerName):
You will need to enable .htaccess by changing
To
This will change allow people to visit
and actually get