Home ›
Redirect URLs in in Apache server .htaccess fileRedirect URLs in in Apache server .htaccess file
Submitted by Benjamin Melançon on August 25, 2010 - 10:40pm
Within the mod_rewrite directive....
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
...right below where Drupal's default .htaccess has the rewrite base option, we can add this:
# Redirects from old site
RewriteRule ^leadership.php$ /community/leadership [NC,R=301,L]
We can have as many rules like that as we want. It's not the fastest way to redirect but it's faster than making Drupal do it internally.
Searched words:
apache .htaccess redirect
Comments
Post new comment