I know this is a recurrent post, but I have spent lot of time reading other posts and trying solutions with no luck.

I cannot put rewrite rules to work in my system.

I am running Windows 2003 server SP/1
and xampp including apache server 2.2.0, mysql 5.0.18 and PHP 4.4.1-pl1.
I have installed Drupal 4.6.5 and works properly, but I can't put clean URL's to work.

Apache is running under a limited account (not system) with only read permissions on drupal's site directory and just write permissions on the temporary files directory and uploaded files directory.

I have loaded mod_rewrite module in httpd.conf (I have checked it with phpinfo()) and have the following directory entries:

<Directory "C:/SitioWeb/drupal">
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

This entries are repited in the virtualhost section I use to access site:

<VirtualHost *:80>
    ServerAdmin webmaster@ingdes.org
    DocumentRoot C:/SitioWeb/drupal
    ServerName pinzon.ingdes.org:80
    ServerAlias localhost
    ServerAlias www.ingdes.org
    ErrorLog C:/SitioWeb/logs/ingdes.org-error.log
    CustomLog C:/SitioWeb/logs/ingdes.org-access.log common
    <Directory "C:/SitioWeb/drupal">
	Options FollowSymLinks
	AllowOverride All
	Order allow,deny
	Allow from all
    </Directory>
</VirtualHost>

The .htaccess file has following entries:

<Files ~ "(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$">
  Order deny,allow
  Deny from all
</Files>

# Set some options.
Options -Indexes
Options +FollowSymLinks

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More exist in sites/default/settings.php, but
# the following cannot be changed at runtime. The first IfModule is
# for Apache 1.3, the second for Apache 2.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
</IfModule>

<IfModule sapi_apache2.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
</IfModule>

# Reduce the time dynamically generated pages are cache-able.
<IfModule mod_expires.c>
  ExpiresByType text/html A1
</IfModule>

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

As long as I know and after reading many forum topics about this problem, this should put rewrite rules to work, but it doesn't.
When I try http://www.ingdes.org/admin I get a 403 (Forbidden access) error page. When I try /node I get a blank page.
If I try to activate clean URL's in admin>>options I get an error saying mod_rewrite seems not to be installed in the system.

Please help me, what have I missed in my configuration files?

Comments

Heine’s picture

I experienced a problem in Apache's module load order with XAMPP and PHP 4.

I've posted the solution to the handbook (but it hasn't past moderation) http://drupal.org/node/43545 . I hope it works for you.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

sepeck’s picture

Now people can see it

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

ariznaf’s picture

Thank you, Heine it was loading order!!

I've made what you suggested and now it works at last!!
I had spent a lot of time reading lots of postings about clean URL's and configuring httpd.conf correctly with no luck.

Now with your help, and with the aid of the other postings I have it running.

Thanks a lot!!
I would like to see a more complete description of how to enable clean URL's ind Drupal's handbooks. And I would put this tip about xampp too (there is a lot of people using xampp).