apache - Redirect 2 different domains to 2 different directory + .htaccess -


here directory structure:

root root/cakephp root/wordpress 

how redirect

  • example.com/cakephp cakephp directory
  • and redirect rest of urls wordpress

we have bespoke website want configure separately cakephp , rerequest example.com/cakephp should go cakephp directory , rest of requestes goes our cms (which wordpress in wordpress folder).

in root .htaccess have rule:

rewriteengine on  rewriterule !^(cackephp|wordpress)/ wordpress%{request_uri} [l,nc] 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -