How can I remove index.php from my URL?


If you’re using Apache, try these things in the order they’re listed below:

  1. Verify that the .htaccess file distributed in the InvoicePlane download file was actually uploaded to your server. This file should exist in the root folder of your InvoicePlane installation (in the same folder as the index.php file). This file should work out of the box 99% of the time for Apache environments.
  2. Make sure the Apache mod_rewrite module is installed and enabled. If you are unsure of how to check for this, contact your web host support or system administrator to ask them.
  3. Open the .htaccess file and change this:

RewriteEngine On

to this:

RewriteEngine On RewriteBase /

If RewriteBase / makes no difference, you can also try:

RewriteEngine On RewriteBase /TheNameOfYourInvoicePlaneFolder/

If you’re using nginx:

Add the following location directive (or change your existing location directive) in your site configuration file:

location / { try_files $uri $uri/ /index.php?$query_string; }

If you’re using IIS:

Use this guide to import the include mod_rewrite rules from the .htaccess file into a web.config file for IIS.