Clean URLs with XAMPP
Last updated on
11 October 2017
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
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
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion