[Solved] Hide “index.php” from “www.blahblah.com/index.php”


create .htaccess file then copy the code below
change ‘project_folder_name’ of the folder of your project
if your project is in the root folder just put “https://stackoverflow.com/”

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /project_folder_name

        # Removes index.php from ExpressionEngine URLs
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{REQUEST_URI} !/system/.* [NC]
        RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

        # Directs all EE web requests through the site index file
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

1

solved Hide “index.php” from “www.blahblah.com/index.php”