#1  
Old 06-04-2004
pageoneresults pageoneresults is offline
SEO Consultants Directory
 
Join Date: Jun 2004
Location: California
Posts: 102
pageoneresults will become famous soon enoughpageoneresults will become famous soon enough
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/.

Code:
RewriteCond Host: ^example\.com 
RewriteRule (.*) http\://www\.example\.com$1 [I,RP]
Just drop the above rule into your httpd.ini file. 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 to make sure that the correct HTTP Status Codes are being returned.
__________________
SEO Consultants Directory
Find Search Engine Marketing Companies

Last edited by pageoneresults : 06-04-2004 at 12:08 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:54 AM.