Drupal Tutorials > Nodes > Cure for FAIL when using RedirectMatch with clean URL's on Drupal

Cure for FAIL when using RedirectMatch with clean URL's on Drupal

categories: Nodes, Other Useful
for Drupal: D5D6D7
1

There is serious misbehavior when using the Redirect or RedirectMatch apache directives on a Drupal site when clean URL's are being used. Instead of being redirected to the desired URL the browser is redirected to the desired URL but with a ?q= appended that indicates the old URL. Something gets confused in the depths of the mod_rewrite rules. I tend to believe the core problem is that Drupals URL's are ugly out of the box and that using mod_rewrite is an abomination, but we're kind of stuck with that until a core team member agrees with me. In any case if you're needing to do a large amount of URL redirecting the path_redirect module might not be sufficient in which case you need to read my tutorial.

(Cure for FAIL when using RedirectMatch with clean URL's on Drupal >>)

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
263 Drupal Tutorials and counting!