apache - Redirect a specific folder to a virtual folder using .Htaccess (make it look like a subdomain) -
so here's directory structure:
|--public_html dir |--index.php file |--search.php file |----assets/ dir |----acp/ dir |------assets/ dir
what need .htaccess way of doing following:
- redirect http://example.com/ --> http://club.example.com/ (where club not sub directory, doesn't exist on server)
- redirect pages same way: e.g. http://club.example.com/search.php
- redirect
/acp/
directory , it's files this: http://club.example.com/acp/post.php - redirect
/public_html/assets/
directory javascript files, css files , images there. should able access them this: http://club.example.com/assets/theme/reset.css , etc. - the same goes
/acp/assets/
directory. contains styling , scripting admin page need access files inside this: http://club.example.com/acp/assets/scripts/menu.js
Comments
Post a Comment