Search Engine Watch
SEO News

Go Back   Search Engine Watch Forums > Search Engine Marketing Strategies > Search Engine Optimization > Dynamic Website and Technical Issues
FAQ Members List Calendar Forum Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
Old 06-04-2004   #1
pageoneresults
Member
 
pageoneresults's Avatar
 
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.
__________________
pageoneresults.com

Last edited by pageoneresults : 06-04-2004 at 11:08 AM.
pageoneresults is offline   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