For the life of me, I can't get clean URLs to work. I've searched extensively and can't find a topic here or elsewhere that resolves the problem.
I've set up Drupal, Apache, PHP, and MySQL on my machine here in the office in order to create an office intranet. When I choose to enable Clean URLs, I get a "Not Found" error.
I'm running on an XP Pro machine, using Apache 2.054.
The base URL for the Drupal site is http://localhost/vbcintranet. I've run the following script:
print_r(apache_get_modules());
to test that mod_rewrite is properly loaded on the server, and it shows it available.
My .htaccess file contains the following in the Rewrite section:
# Various rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and the
# rewrite rules are not working properly:
RewriteBase /vbcintranet/
# Rewrite old-style URLS of the form 'node.php?id=x':
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x':
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]
# Rewrite URLs of the form 'index.php?q=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
It's essentially the default .htaccess, with only one change: I have played with various options for the RewriteBase directive, thinking it made sense that that might be the problem, but to no avail.
I'm not a programmer (I know enough to be dangerous), and would really appreciate some leads on how to get this functioning.
Thanks,
Mark