Drupal is a registered trademark of Dries Buytaert
Drupal 10.6.13 Update released for Drupal core (10.6.13)! Drupal 11.3.14 Update released for Drupal core (11.3.14)! Drupal 11.4.4 Update released for Drupal core (11.4.4)! Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Views Entity Form Field 8.x-1.2 Minor update available for module views_entity_form_field (8.x-1.2). ALTCHA 1.2.0 Minor update available for module altcha (1.2.0). Small Y 2.0.5 Minor update available for module ws_small_y (2.0.5). Juicer Social Feed 1.3.0 Minor update available for module juicer (1.3.0). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Index.php Redirect

Index.php Redirect automatically redirects Drupal URLs that expose the index.php front controller to their clean equivalents.

For example:

/index.php/documents/report

is redirected to:

/documents/report

This helps prevent duplicate URLs, inconsistent links, and unwanted index.php URLs from being indexed by search engines.

Features

  • Works immediately after installation with no required configuration.
  • Uses a permanent 301 redirect by default.
  • Can be configured to use a temporary 302 redirect.
  • Preserves the complete path and query string.
  • Supports Drupal installations located in a subdirectory.
  • Excludes update.php, install.php, cron.php, and authorize.php by default.
  • Allows additional excluded paths to be configured.
  • Provides optional redirect logging through Drupal's logging system.
  • Processes only main GET and HEAD requests, preventing submitted form data from being lost.
  • Supports Drupal 10 and Drupal 11.

Post-installation

Enable the module normally. No configuration is required for the default behavior.

Optional settings are available at:

Administration > Configuration > Search and metadata > Index.php Redirect

The configuration page allows administrators to select the redirect status code, manage excluded paths, and enable redirect logging.

Additional requirements

No additional modules or third-party libraries are required.

The web server must already support Drupal clean URLs for the redirect destination to work.

Similar projects

The Redirect module provides comprehensive redirect and canonical URL management. Index.php Redirect is intended as a smaller, focused alternative for sites that only need to remove the /index.php/ component from Drupal URLs.

Legacy Redirect handles older index.php?q=path URL formats. Index.php Redirect instead handles modern URLs using the /index.php/path format.

Activity

Total releases
1
First release
Jul 2026
Latest release
1 hour ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.x-dev Dev Jul 17, 2026