I'm setting up Drupal on a subdirectory of our site and struggling mightily with clean URLs. I think this is an Apache issue, or a fixing my Apache config issue, but I'm not sure how to fix it without breaking the rest of the site.
I have full control over the apache configuration, but I inherited a site with a fair amount of tweaking, rewrite rules to accommodate a site restructuring long ago, and more tweaking.
Mod_rewrite is definitely enabled, and we're using it extensively in other places.
What I'd like to do is add a line or six to the "staging.conf" (and eventually to www.conf) in my apache configs that will give drupal control over URL rewriting in the drupal directory without interfering with anything else.
Currently, the "clean url" test just fails.
I've looked around in the handbook, and don't see anything that looks like it is going to solve my problem, so I'm wondering if anyone has advice for me.
thanks, Amanda
Hi Amanda,
Drupal should pick up its mod_rewrite settings from the .htaccess file in the Drupal directory.
You might try moving your rewrite rules to .htaccess files in the appropriate directories, removing them from your apache configuration files.
Cheers, Andrew
On 22-Oct-07, at 5:57 PM, Amanda B Hickman wrote:
I'm setting up Drupal on a subdirectory of our site and struggling mightily with clean URLs. I think this is an Apache issue, or a fixing my Apache config issue, but I'm not sure how to fix it without breaking the rest of the site.
I have full control over the apache configuration, but I inherited a site with a fair amount of tweaking, rewrite rules to accommodate a site restructuring long ago, and more tweaking.
Mod_rewrite is definitely enabled, and we're using it extensively in other places.
What I'd like to do is add a line or six to the "staging.conf" (and eventually to www.conf) in my apache configs that will give drupal control over URL rewriting in the drupal directory without interfering with anything else.
Currently, the "clean url" test just fails.
I've looked around in the handbook, and don't see anything that looks like it is going to solve my problem, so I'm wondering if anyone has advice for me.
thanks, Amanda
-- Amanda B Hickman (p) 917 655 2579 (s) amandabee (a) amandahlinc (w) http://velociraptor.info -- [ Drupal support list | http://lists.drupal.org/ ]
Andrew Hankinson andrew.hankinson@gmail.com
In your main apache config (usually httpd.conf) make sure that AllowOverride is set on.
-Mike
__________________ Michael Prasuhn mike@mikeyp.net mikeyp.phone@gmail.com phone 714.356.0168 cell 949.200.7670 fax
-----Original Message----- From: Amanda B Hickman amanda@velociraptor.info
Date: Mon, 22 Oct 2007 17:57:53 To:support@drupal.org Subject: [support] Troubleshooting URL rewrites
I'm setting up Drupal on a subdirectory of our site and struggling mightily with clean URLs. I think this is an Apache issue, or a fixing my Apache config issue, but I'm not sure how to fix it without breaking the rest of the site.
I have full control over the apache configuration, but I inherited a site with a fair amount of tweaking, rewrite rules to accommodate a site restructuring long ago, and more tweaking.
Mod_rewrite is definitely enabled, and we're using it extensively in other places.
What I'd like to do is add a line or six to the "staging.conf" (and eventually to www.conf) in my apache configs that will give drupal control over URL rewriting in the drupal directory without interfering with anything else.
Currently, the "clean url" test just fails.
I've looked around in the handbook, and don't see anything that looks like it is going to solve my problem, so I'm wondering if anyone has advice for me.
thanks, Amanda
Amanda, have you looked at this page: http://drupal.org/node/15365
You should be able to make the rewrite rules needed by Drupal apply only to the directory in which Drupal resides. I think that was the point of Andrew's post about using .htaccess. You probably want to use the Apache <Directory> section.
Actually, using .htaccess is less efficient than putting the same directives right in Apache's config file, and is normally only necessary when one cannot edit the Apache config file.
-- ..chrisxj
Quoting Amanda B Hickman amanda@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/