Clean URLs with XAMPP

Last updated on
11 October 2017

Clean URLs works out of the box on current XAMPP. However, you probably need to set the rewrite base in the .htaccess file. Uncomment the line

# RewriteBase /drupal

if you have installed Drupal in a directory named drupal (inside the XAMPP htdocs directory).

Modify the RewriteBase if using Drupal in a subdirectory.
For example if site is at "Xampp/htdocs/Project/drupal" and  If site URL looks like this: "http://localhost/project/drupal".

Then modify the following line in the .htaccesss :

   RewriteBase /Project/drupal