Sunday, March 5, 2017

Laravel 5 in subdirectory

So, i need Laravel 5 to be installed and running in subdirectory (Laravel 5.3), i tried everything online, i even tested the .htaccess i have written to redirect from the subdirectory to public folder in that subdirectory (which works fine in online testers), but yet, when i open:

http://example.com/subdirectory/route 

it doesnt work, when i try

http://example.com/subdirectory/public/route 

then everything is fine ...

So, is there anyone that can help me out resolving this issue? Here is the .htaccess im currently using:

RewriteEngine On
RewriteRule ^subdirectory/(.*)$ subdirectory/public/$1 [L]



via Анѓелкоски Бојан

Advertisement