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
Searched words:
apache .htaccess redirect
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.
More like this
- Rewrite rules really picky about a blank space in the bracket portion
- Setting up redirects in .htaccess for all paths matching a pattern
- Apache rewrite rules for redirects do not work in Drubuntu setup
- www .htaccess rewrite and Drupal multisite
- .htaccess workaround for local development, files not in web root


Comments
Post new comment