Join Date: Jun 2004
ISAPI Rewrite Tip #1
Redirect Sub-Domain to Domain
For those of you utilizing an ISAPI filter for URI rewriting, here is a quick tip on setting up a 301 Moved Permanently rule for http://example.com/ to http://www.example.com/.
RewriteCond Host: ^example\.com RewriteRule (.*) http\://www\.example\.com$1 [I,RP]
Be sure to always check your Server Headers to make sure that the correct HTTP Status Codes are being returned.
Last edited by pageoneresults : 06-04-2004 at 12:08 PM.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|