bestmomo / laravel5-example

Simple laravel5 example for tutorial
MIT License
1.2k stars 568 forks source link

htaccess add a statement #1

Closed ghost closed 9 years ago

ghost commented 9 years ago
Options -MultiViews ``` RewriteEngine On ``` add a statement if your website is not under the root path RewriteBase /projectname add a statement if your website is not under the root path ``` # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] ```
bestmomo commented 9 years ago

I already set the links in views to get them working for website not under root path. So it works fine like it.

ghost commented 9 years ago

thanks for the reply.

2014-12-09 7:51 GMT+08:00 bestmomo notifications@github.com:

Closed #1 https://github.com/bestmomo/laravel5-example/issues/1.

— Reply to this email directly or view it on GitHub https://github.com/bestmomo/laravel5-example/issues/1#event-204552219.

郭华 电话 +086 -159 4284 6382 MSN adangading@gmail.com QQ 17342708