Reputation: 430
I'm trying to remove 'index.php' of my project's url, but nothing works. I've been messing up with my .htaccess for weeks, but nothing.. nothing works! I have no idea of what is wrong. mod_rewrite is indeed enabled. Here's the content of my .htaccess under public dir:
<IfModule mod_rewrite.c>
RewriteBase /var/www/html/arquivos/index.php/
<IfModule mod_negotiation.c>
Options +FollowSymlinks -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Any suggestions? Thanks.
EDIT: My directory structure:
/var/www
laravelproject/
public/
index.php
main.cs
...
html/ (apache server public folder)
project (sym link to /var/www/laravelproject/public/)
I can access my project through this url:
localhost/project/index.php/
What i want to do is remove "index.php" out of my url.
Upvotes: 0
Views: 50
Reputation: 1667
I would just comment this but i can't. See if this can help in any way https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e#.nzycje9pc
Upvotes: 0