Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Other Applications / Drupal / I am receiving 404 error message after I have enabled my Drupal clean/SEF/Short URLs

I am receiving 404 error message after I have enabled my Drupal clean/SEF/Short URLs

Last update: Aug 07, 2025

This issue usually happens after enabling the “Clean URLs” option in Drupal.

To resolve it, make sure you have a .htaccess file in your Drupal root directory containing these lines:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

More information on how to configure SEF URLs for Drupal is available in our tutorial.

Share this article