[support] Troubleshooting URL rewrites
Amanda B Hickman
amanda at velociraptor.info
Tue Oct 23 16:00:03 UTC 2007
Yes! It would be nice if drupal gave me a little more information about
just what fails. It sends you off to
http://staging.example.com/drupal/admin/settings/clean-urls
where you see a "404: Not Found" error. All my logs say is that I tried
to reach a page that didn't exist (er, and that the page was
http://staging.example.com/drupal/admin/settings/clean-urls which,
indeed, does not exist)
I did read through http://drupal.org/node/15365
I did set the rewrite base.
Changing the Apache <directory> directive to "AllowOverride All" does
work, but I'd like to limit the change to the drupal directory, which I
haven't been able to do.
15 <Directory /srv/apache2/staging/drupal/>
16 AllowOverride All
17 </Directory>
Doesn't get me anywhere.
Adding a rewrite base to the directory setting doesn't help anything:
15 <Directory /srv/apache2/staging/drupal/>
16 AllowOverride All
17 RewriteEngine On
18 RewriteBase /drupal
19 </Directory>
I don't know any more tricks, myself. I'm not sure how to interpret the
rewrite rule suggested on drupal.org ...
<Directory /var/www/example.com>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>
I realize that this is an Apache question at this point, but it requires
just enough knowledge of Drupal that I sort of need help here. If anyone
has any insights or fortitude with Apache configuration, I'd like to
resolve this.
Thanks,
Amanda
> Message: 3
> Date: Tue, 23 Oct 2007 07:57:48 -0400
> From: Earnie Boyd <earnie at users.sourceforge.net>
> Subject: Re: [support] Troubleshooting URL rewrites
> To: support at drupal.org
> Message-ID: <20071023075748.nht2yotlrkwk8s0s at mail.progw.org>
> Content-Type: text/plain; charset=ISO-8859-1; format="flowed"
>
> Quoting Amanda B Hickman <amanda at velociraptor.info>:
>
>> Currently, the "clean url" test just fails.
>>
>
> It'd be kind if it would tell you why now wouldn't it? I've never had
> one fail. Have you looked at the php and server log files? Perhaps
> the watchdog table gives a clue? Do you need to set the RewriteBase?
>
> Earnie -- http://for-my-kids.com/
> -- http://give-me-an-offer.com/
--
Amanda B Hickman
(p) 917 655 2579
(s) amandabee
(a) amandahlinc
(w) http://velociraptor.info
More information about the support
mailing list