Simple! Just need to change a setting in the .htaccess file. I am using Laravel 4, you might be using some other version but the method should apply nevertheless. I use an alias to point to this directory.

Add this line RewriteBase /l4 to your .htaccess where l4 is your sub directory or folder.

<IfModule mod_rewrite.c>
  Options -MultiViews
  RewriteEngine On
  RewriteBase /l4
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]

Have fun!

comments powered by Disqus