Normally the index.php in laravel framework is in the /public_html/public/ folder. In my case it is in /public_html folder
This is the code inside my .htaccess file
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
What changment should I make to exclude index.php from urls ?
The code structure is as follows :
/public_html/sitemap.xml
/public_html/sitemap.htm
/public_html/server.php
/public_html/robots.txt
/public_html/readme.md
/public_html/index.php
/public_html/.htaccess
/public_html/public
/public_html/database
/public_html/config
/public_html/cgi-bin
/public_html/bootstrap
/public_html/app
and inside /public_html/public
/public_html/public/web.config
/public_html/public/robots.txt
/public_html/public/favicon.ico
/public_html/public/upload
/public_html/public/js
/public_html/public/img
/public_html/public/css
homepage.com/index.php
, but just the home page. you don't need to change anything. – GabMic