Forum Moderators: phranque
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
(sample rewrite)
RewriteRule ^example/([^/]+)$ example-2.cfm?example=$1 [L]
(big list of rewrites after this)
Redirect 301 example.cfm example-2.cfm
Redirect /example.html http://example.com/example-2.cfm
Redirect 301 /example.cfm http://www.example.com/example-2.cfm
[edited by: g1smd at 9:58 pm (utc) on Dec 23, 2011]
mod_alias generally executes after mod_rewrite
Most site owners have no control over how this part of the server configuration has been set by their hosting company
the results are fatal for SEO