On my site is currently running wordpress so my .htaccess looks like this:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
But I need to test other(laravel) application there. If I replace .htaccess with this:
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
my laravel app works. Is there any way how to be able to keep working both apps? Specifically it would be good if second app runs just on some alias e.g. www.mysite.com/secreturl. I tried to combine it like so:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^secret(.*)$ public/$1 [L]
But I couldn't achieve anything. Thanks.