-2

I am using laravel framework for mtdb i wanna change http://127.0.0.1/tp/index.php/movies this url to http://127.0.0.1/tp/movies means i want to add to remove index.php using .htaccess

Here is the .htaccess

I have

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -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]

Sulthan Allaudeen
  • 11,330
  • 12
  • 48
  • 63
Saquib
  • 31
  • 5

1 Answers1

0

There are many solutions for removing the index.php such as Laravel 4 remove Index.php from URL

But i would suggest you to rename the server.php in the your Laravel root folder to index.php and copy the .htaccess file from /public directory to your Laravel root folder.

Community
  • 1
  • 1
Sulthan Allaudeen
  • 11,330
  • 12
  • 48
  • 63
  • yaa sir same error actually my file runs when i go through url http://127.0.0.1/tp/index.php/etcetc and doesnt run when i go directly through http://127.0.0.1/tp/etcetc – Saquib Apr 01 '15 at 09:33
  • May i know what error it throws `Page Not Found Exception` or a simple blank page ? – Sulthan Allaudeen Apr 01 '15 at 09:35
  • Actually i want to install mtdb movie database to my server and it get installed when i go through url http://127.0.0.1/tp/index.php/install and i want to install it using url http://127.0.0.1/tp/install/ means skipping index.php in the url.. please help sir i m in an urgent need...thank you in advance – Saquib Apr 01 '15 at 09:40
  • I don't know much about `mtdb`, may i know which laravel version you have currently ? – Sulthan Allaudeen Apr 01 '15 at 09:43