Saturday, February 24, 2018

Get rid of index.php in URL Laravel - development

Get rid of index.php in URL Laravel

Hi,

I’m new to Laravel and installed it just successfully. But i having a problem. When i use:

php artisan make:auth 

Its creates the register and login page but i can only access it if it include index.php in the URL. I want to get rid of the index.php in the URL. Any knows how to fix this?

 GNU nano 2.5.3 File: .htaccess <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule> 

Config file https://ghostbin.com/paste/u95kr

I’m using Ubuntu 16.04 (digitalocean)

submitted by /u/TristanMagnus
[link] [comments]



from Laravel Questions and Answers https://laravelquestions.com/rlaravel/get-rid-of-index-php-in-url-laravel/
via Lzo Media

1 comment:

  1. Valuable information in your blog and I really appreciate your work and keep it up dude I really very informative blog about the professional logo designs good work with Hire php developer uk

    ReplyDelete