Drupal 6 clean URL configuration on Windows XP and Apache 2.2 (Clean URL is implemented here)

Source: Internet
Author: User
Tags drupal

Http://drupal.org/node/399310

 

  1. EnterIn Apache 2.2Conf directory:

    > Cd c: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf
  2. OpenHttpd. conf> Notepad httpd. conf
  3. Uncomment loading of read-write module by removing#:Loadmodule rewrite_module modules/mod_rewrite.so
  4. Uncomment including virtual hosts delaration file by removing#:# Virtual Hosts
    Include CONF/extra/httpd-vhosts.conf
  5. For declaring only Localhost
    1. Create or clear contents of FileConf/extra/httpd-vhosts.conf
    2. Copy and paste the following in this file:
      options followsymlinks
      AllowOverride all
      order deny, allow
      deny from all
      satisfy all


      options indexes followsymlinks
      AllowOverride all
      order allow, deny
      allow from all

      rewriteengine on
      rewritebase/
      rewritecond % {request_filename }! -F
      rewritecond % {request_filename }! -D
      rewriterule ^ (. *) $ index. php? Q = $1 [L, QSA]

      # Use name-based virtual hosting.
      namevirtualhost 127.0.0.1

      <Virtualhost 127.0.0.1>
      DocumentRoot "C:/program files/Apache Software Foundation/apache2.2/htdocs"
      Servername localhost
      Directoryindex index. php
      </Virtualhost>

Jeff in Seattle

» Login or register to post comments

Very helpful guideshaunak-March 13,200 9-

Very helpful post.

I wowould also like to add that you also may have to set the "AllowOverride" directive to "all" [around line 224 in the httpd. CONF file] to allow directives in. htaccess to work.

 

Around that line, you can see,

<Directory/>
Options followsymlinks
AllowOverride all
Order deny, allow
Deny from all
Satisfy all
</Directory>

--
Cheers,
Shaunak.

Login or register to post commentsthanksdmartin-August 13,200 9-

@ Shaunak
Thanks so much. I 've tried everything under the sun, and it didn't work. Your post led me to this in my httpd. conf:

Options followsymlinks
AllowOverride none

Which was overridding every single thing I tried, and I didn't even know it. As soon as I changed none to all, boom, it was working.

After completing the preceding settings, perform the following two steps:

(1) "start "--"Program"--" Apache HTTP Server 2.2.6 "--" control Apache server "--" restart"

 

(2) Open IE browser, pointer to http: // 127.0.0.1/Drupal/

"Administrater" -- "site configure" -- "clean URLs" -- select enable

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.