Quantcast
Channel: Webdevtuts » server
Viewing all articles
Browse latest Browse all 3

Drupal: How to enable clean urls with xampp and wamp

$
0
0

If you’re not using a Mac or linux and you’ve just installed a fresh copy of drupal on your machine then your probably wanting to know how can you enable clean urls on your localhost. I have spent hours in the pass trying to figure out how this can be done using a localhost so I am hoping this works for you and saves you a ton of time.

Enabling clean urls

Step 1

Located your httpd.conf file then open it with your text editor.

Step 2

Look for the following line in your httpd.conf file

#LoadModule rewrite_module modules/mod_rewrite.so

Step 3

Now remove the hash symbol from that line. Then save it and restart your server.

LoadModule rewrite_module modules/mod_rewrite.so

 

Optional

Still not working? If you have followed the above steps and things are still not working add this to the bottom of your httpd.conf file. Change to www directory or htdocs.

  Alias /drupal "C:/Program Files/xampp/htdocs/drupal/"
    <Directory "C:/Program Files/xampp/htdocs/drupal">
      AllowOverride All
      Order allow,deny
      Allow from all
    </Directory>

Viewing all articles
Browse latest Browse all 3

Trending Articles