This procedure is nearly like configuring Clean URLs in XAMPP, but with a couple spots where things go elsewhere. Note that this presumes the standard Wampserver 2 download from http://www.wampserver.com/en/download.php, that it has installed, and that your basic Apache, MySQL, and PHP set-ups are working correctly.

Step by Step:

  1. Install Drupal 6.x as outlined elsewhere:
    Be sure to note the base directory you install the Drupal software into. Check Site Configuration >> Clean URLs to see whether Clean URLs are enabled or disabled. If they're enabled, you're done. If disabled, and Drupal warns of a misconfiguration, follow the steps below.
  2. Editing Apache's httpd.conf file: Search for the mod_rewrites load module line in the file and remove the "#" at the first character.
    #
    # LoadModule rewrite_module modules/mod_rewrite.so
    #
    

    Cut and paste the line just before or just after the mod_cache load module line like this:

    #
    # About 75 lines of load module code
    #
    LoadModule autoindex_module modules/mod_autoindex.so
    #
    #LoadModule cache_module modules/mod_cache.so
    LoadModule rewrite_module modules/mod_rewrite.so
    #
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    #
    # The remainder of the file follows from here.
    
  3. Refresh or reload the Site Configuration >> Clean URLS page again. Has the warning changed? If so, and it says you can enable the Clean URLS option, enable it, and you're done.
  4. Editing the Alias in Wampserver: Here's where you need the installation directory you wrote down in Step 1. Locate the file named drupal.conf in the "alias" sub-directory immediately below the Wampserver installation directory. (If you installed Wampserver into c:\wamp, you want c:\wamp\alias\drupal.conf.) Load the file into a text editor. You should have a single paragraph with a fresh install of Wampserver and Drupal. Edit the file so it reads like this:
    
    Alias /drupal "{Drupal installation directory/}drupal/"
      <Directory "{Drupal installation directory/}drupal">
          Options Indexes FollowSymLinks MultiViews
          AllowOverride All
          Order allow,deny
          Allow from all
      </Directory>
    
    
  5. Recheck and/or reload the Site Configuration >> Clean URLs page. The option to Enable Clean URLs should be enabled, so you can click "Enable" and press "Save Configuration."

It's worth mentioning that you may need to set one more configuration line in the .htaccess file in the Drupal base directory. Load the file from Step 2 into your text editor, and search for the lines like those listed below:


  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /

Follow the instructions and edit the line as needed.

Finally, restart the web server.

At this point, you should have clean URLs enabled, and working correctly.

Comments

Paul Simard’s picture

Status: Active » Needs review

There should be a note that Apache needs to be restarted after the httpd.conf file has had mod_rewrite.so uncommented. Also, that the final instruction refers to the file edited in Step 2. This needs to be changed to refer to .httaccess file in the Drupal base directory. Those are the only misses I noticed after posting the issue.

This is my first Open Source contribution. Please be gentle.

Paul

arianek’s picture

Issue tags: +server stuff

tags

Paul Simard’s picture

Component: New documentation » Correction/Clarification
Paul Simard’s picture

Assigned: Unassigned » Paul Simard
Paul Simard’s picture

Issue tags: +6.x, +7.x
Paul Simard’s picture

I installed 7.x, same problems, same solution.

Paul Simard’s picture

Title: HowTo Configure Clean URLs in Wampserver 2 (Drupal 6.x) » HowTo Configure Clean URLs in Wampserver 2 (Drupal 6.x, 7.x)

Added 7.x to title

Paul Simard’s picture

Issue summary: View changes

Rolled in the instruction to restart the web server.

jp.stacey’s picture

Assigned: Paul Simard » Unassigned
Issue summary: View changes
Status: Needs review » Needs work

The "canonical" clean URLs page mentioned on #553006: Merge and reduce the number of pages about clean URLs has been migrated to the new guide format:

https://www.drupal.org/docs/7/configuring-clean-urls/enable-clean-urls

However:

1. This (sub-)section of this guide is still in need of maintainers (although two are listed?)
2. It's not possible to add new pages here: maybe it's locked down until enough maintainers can be found?
3. There's some confusion over whether different server configurations need a new page (e.g. Debian) or a new h2 heading on the "Enable" page: IIS is in both locations, although annoyingly it's a stub on the "Enable" page pointing to the same location as in the navigation!

Also annoyingly, Wampserver is now on version 3. Do we update this documentation to match, or discard as outdated?

tvn’s picture

1. This (sub-)section of this guide is still in need of maintainers (although two are listed?)

Unfortunately this means none of the two listed maintainers edited the guide and changed the status.

It's not possible to add new pages here: maybe it's locked down until enough maintainers can be found?

It's not locked. It is possible to add pages to any guide from the top page of the guide, e.g.: https://www.drupal.org/docs/7/configuring-clean-urls. See 'Add content' links at the bottom of the sidebar.

jp.stacey’s picture

Status: Needs work » Needs review

@tvn thanks for the feedback: I've added the new documentation here:

https://www.drupal.org/docs/7/configuring-clean-urls/clean-urls-in-wamps...

If a maintainer or similar could publish it, that would be great.

Regarding adding pages, I appreciate the guides are still a work in progress! But it might be that omitting an "Add content" link from internal guide page is a UX bug: it could discourage people from adding to the documentation (it depends on the motivation for doing so, really). However, as that's not relevant here then I've opened #2818975: Implement an "Add content" link on new guide subpages, not just at the top level to discuss it.

@Paul Simard before I forget, thanks for writing the comprehensive documentation in the first place. Even if it needs updates for Wampserver 3 then I think someone will be more likely to modify existing documentation they can see, than writing the whole thing from scratch.

jp.stacey’s picture

Status: Needs review » Fixed

Published by tvn: https://www.drupal.org/node/2818971/discuss#comment-11730179

Closing this issue as fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.