index.php - Forum | JoomShaper
Staff replied SP Page Builder

index.php

Asked by JP-Boiron 1 month ago Last activity 1 month ago

Is it possible to remove "index.php" from the address bar?

4 replies

Ziaul Kabir Staff

Hi Boiron,

Yes, this is possible. Here's how to do it:

  1. Go to System → Global Configuration → Site and under SEO Settings set:

    • Search Engine Friendly URLs: Yes
    • Use URL Rewriting: Yes
  2. In your site's root folder, rename htaccess.txt to .htaccess (via FTP or your host's file manager).

  3. Clear your site cache (System → Clear Cache) and your browser cache, then test.

A few notes if it doesn't work right away:

  • If you get a 500 error after renaming the file, your host may not have mod_rewrite enabled — worth checking with them.
  • If you're on Nginx rather than Apache, .htaccess won't apply and you'll need equivalent rewrite rules in your server block instead.
  • Double-check the Global Configuration change actually saved, since a stale cache can make it look like nothing happened.

Let us know your server type (Apache/Nginx) if it's still not working after this.

Thanks

Paul Frankowski Senior Staff
1 month ago · edited

Extra step

  1. Plugins > Plugins: System - SEF > Strict handling of index.php: Yes and enable plugin.

It will remove 'index.php' if a URL still contains it and redirect incoming requests with 'index.php' to the version without the 'index.php'.

JP-Boiron Asked this

Thank you for the explanation. It works perfectly. Thanks for taking the time to reply.
Apologies for the writing; I am French, and this is a translation.
Best regards,
Jean-Paul

Paul Frankowski Senior Staff

Pas de problème, nous sommes ravis d'avoir pu vous aider, même si la question portait uniquement sur Joomla.

Please click accept answer, merci

Best regards, Paul

Log in to reply.