drupal 7 cleanurl windows apache2.2

C:\Apache2.2\conf>grep mod_rewrite httpd.conf
######### enable mod_rewrite
LoadModule rewrite_module modules/mod_rewrite.so

C:\Apache2.2\conf>grep httpd-vhosts.conf httpd.conf
Include conf/extra/httpd-vhosts.conf
C:\Apache2.2\conf\extra>cat httpd-vhosts.conf|egrep -v "^#"

NameVirtualHost *:80
RewriteEngine On
RewriteOptions Inherit

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host
    DocumentRoot "c:/www"
</VirtualHost>
<Directory "c:/www">
    RewriteEngine on
    RewriteBase /tb
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    Order allow,deny
    Allow from all
    AllowOverride All
</Directory>

I had to put
RewriteBase /tb
because my site resides in c:\www\tb

for more http://drupal.org/node/15365

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s