How to Remove index.php from Joomla URLs
To remove index.php from Joomla URLs safely, first make sure SEF routing works with index.php present. Then configure the correct web-server rewrite layer and enable Joomla's Use URL Rewriting option.
Prove SEF URLs work before rewriting
- Open System → Global Configuration → Site.
- Enable Search Engine Friendly URLs.
- Leave Use URL Rewriting off.
- Save and test several direct frontend routes.
If SEF routes already fail, fix Joomla routing first. Adding server rewriting to a broken baseline creates two problems at once.
Identify and prepare the web server
- Apache-compatible hosting: review Joomla's
htaccess.txtand activate/merge the appropriate rules as.htaccess. - Nginx: use an appropriate front-controller fallback such as
try_filesin the site configuration. - Microsoft IIS: use the IIS URL Rewrite module and an appropriate
web.configrule.
Back up the existing server configuration and preserve host-specific security, PHP, and redirect rules.
Enable Use URL Rewriting
After the server can internally route clean paths to Joomla's index.php, enable Use URL Rewriting and save. Joomla should generate public routes without index.php; the file itself remains the internal front controller and should not be deleted.
Handle old index.php URLs deliberately
Existing links, bookmarks, or indexed URLs may still contain index.php. If you use Joomla's SEF plugin or another redirect mechanism to normalize those URLs, test it only after clean routing is stable. Avoid stacking multiple canonical redirect systems that can create loops.
Test subdirectories, HTTPS, and edge layers
Sites in subdirectories need rewrite paths that match the real deployment. CDNs, reverse proxies, and HTTPS/hostname redirects can also affect the final URL. Test with and without the edge layer when possible if the origin behaves differently.
Verify the result
- Test the home page and several deep menu routes.
- Paste clean URLs directly into a private browser window.
- Test articles, forms, pagination, and media.
- Confirm genuine unknown URLs still return 404.
- Check canonical tags, sitemap URLs, and server logs.
If clean URLs fail, turn Use URL Rewriting off while repairing the server configuration.
Need More Help with Joomla?
Still having trouble? Open a support ticket with QuantaCade Support and we'll be happy to help where we can.
Support priority is given to QuantaCade products, services, and customers. However, we're also happy to assist fellow Joomla users with general Joomla questions and troubleshooting when possible.
QuantaCade is an independent Joomla extension developer and is not official Joomla support. Some issues involving third-party extensions, hosting environments, server configurations, or other systems outside our development control may be beyond what we're able to resolve.