• Francesco

    (@checco_veroliberoit)


    Hello, I’m managing the wesite https://www.panorama-italia.com

    I need to configure a custom permalink, but using something different from the default settings, I always need to specify the /index.php/ path in the URL to get the site working.

    I tried to implement some suggestions I found with no luck results. Here is my .htaccess content:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    If I remove /index.php I cannot read site’s pages anymore.
    Have you any precise idea how to get the site working?

    Tx

Viewing 2 replies - 1 through 2 (of 2 total)
  • This might not make any difference, but maybe try adding this above all of that:

    ## from BulletProof Security
    # DIRECTORY INDEX FORCE INDEX.PHP
    DirectoryIndex index.php index.html /index.php

    Thread Starter Francesco

    (@checco_veroliberoit)

    Unfortunately you are right:

    – I copied the DirectoryIndex variable in the .htaccess file
    – I changed the permalink in the WP dashboard not to include /index.php path
    – restarted Apache

    Navigating the web site pages I get the “404 error”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to avoid having index.php in the website URL’ is closed to new replies.