Quantcast
Channel: i.justrealized » htaccess
Viewing all articles
Browse latest Browse all 2

How to install Laravel to a subdirectory

$
0
0

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]
</IfModule>

Have fun!


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images