Forum Moderators: open
RewriteCond Host: ^example\.com
RewriteRule (.*) http\://www\.example\.com$1 [I,RP] Just drop the above rule into your .ini file and you are good to go. No longer do you need to get your hosting provider involved when setting up 301 Moved Permanently redirects.
Be sure to always check your Server Headers [searchengineworld.com] to make sure that the correct HTTP Status Codes are being returned.
[edited by: Xoc at 5:14 am (utc) on April 27, 2004]
[edit reason] Fixed example [/edit]