Configure a compact URL (clean URLs) under XAMPP

Source: Internet
Author: User
Tags compact drupal ubercart

My environment is: Xampp,vista system, drupal5.x. It has been a while to install the Drupal test environment locally, but the simple URL (clean URLs) has not been tuned, but there was nothing, just a configuration issue. Recently, in the study of Ubercart, You need to use a simple URL. So start configuring.

The first is to open the. htaccess file, looked inside, as if there is nothing to match, because the previous installation environment is used WDP, rather than xampp, so there is a concise URL configuration does not apply. Previously wrote a special article on this aspect. Baidu search for a while, see or their own that article. Because he is not very familiar with the apache,php, so can only rely on the existing scheme.

First find http://drupal.org/node/15365 This document, according to the instructions, the Apache allowoverride none of the above changed to allowoverride all, try it, and then changed back. It's still not working.

Look at this document, pull down, and find an article, http://drupal.org/node/43545, devoted to the simple URL configuration below xampp. According to gourd painting ladle.

1,f:\xampp\apache\conf, locate the Httpd.cond file in the directory, open, and find #loadmodule rewrite_module modules/mod_rewrite.so.

Remove the previous annotation symbol "#".

2,f:\xampp\apache\conf\extra, under this directory, create a new httpd-ubercart-5.conf file, my project name is ubercart-5. Add the following:

Alias/ubercart-5 "f:/xampp/htdocs/ubercart-5/"

<directory "f:/xampp/htdocs/ubercart-5/" >

AllowOverride All

Order Allow,deny

Allow from all

</Directory>

Save, close, and restart Apache, so it's done. Note that you need to change the F:\xampp\ to your directory and write the path right.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.