Apache RewriteRule in htaccess - Routes are broken Apache RewriteRule in htaccess - Routes are broken wordpress wordpress

Apache RewriteRule in htaccess - Routes are broken


This solution requires ssh access.

Abandon all solutions based on htaccess rules . Try to use symbolic link instead ln -s command

The best idea here is to put each project in seperate folder otuside folder where your domain is pointing (let's name it here as public_html)

ROOT|-[Symfony]-[WP]-[public_html] (folder where your domain is pointing) 

and now- remove public_html- add symbolic link to wp ( with name of public html)- include wp create symbolic link to symfony/web

ROOT|-[Symfony]-[WP]-- [app]  (symbolic link to symfony/web)-[public_html] (symbolic link to WP ) 

As alternative i think that possible is to redirect request from symfony to wp and then push wp response to user(from symfony) . I seen solutions like this ( it's used when you building new app on top of legacy system ) . But this is more problematic than symbolic link ( you can see the idea here https://www.enotogorsk.ru/en/2014/07/22/symfony-legacy-bridge/)