Http://drupal.org/node/399310
-
- EnterIn Apache 2.2Conf directory:
> Cd c: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf
-
- OpenHttpd. conf
> Notepad httpd. conf
-
- Uncomment loading of read-write module by removing#:
Loadmodule rewrite_module modules/mod_rewrite.so
-
- Uncomment including virtual hosts delaration file by removing#:
# Virtual Hosts
Include CONF/extra/httpd-vhosts.conf
- For declaring only Localhost
-
- Create or clear contents of FileConf/extra/httpd-vhosts.conf
- 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