• Background
    • Awards
    • Biography
    • Resume
  • Site
    • Blog
    • Cookie Policy
    • Galleries
      • Photo Gallery
      • Video Gallery
    • Glossary
  • Contact
    • Contact
    • Social Networks
  • IT
    • Downloads
      • Windows
    • Equipment
    • Hardware
    • Software
    • Testimonial
    • Information Technology
  • Projects
    • Business Projects
    • PC Projects
      • Hackintosh Laptop Projects
      • Hackintosh Desktop Projects
    • Website Projects
    • More Projects
  • Service Rates
    • Business Rates
    • Residential Rates

Fixing WWW Resolve Errors

Thursday, April 3, 2003 Articles, Tips Comments Off on Fixing WWW Resolve Errors

Do you need help fixing www resolve errors? It is simple to do and can prevent search engines from considering www.example.com and example.com as two different websites.

To fix the error, you will need access to the .htaccess file in the root of your website. Please be sure to archive a copy the .htaccess before making any changes in case you make an error so that you can recover your website quickly.

# [ CP Global Redirection - Open ]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^nyhtml.com [OR]
RewriteCond %{HTTP_HOST} ^stephanpringle.com [OR]
RewriteCond %{HTTP_HOST} ^www.nyhtml.com
RewriteRule ^(.*)$ http://www.stephanpringle.com/$1 [R=301]
# [ CP Global Redirection - Close ]

The code is also useful for exterior websites that are sharing your IP address in their ‘A Record’ on purpose or accidentally and will let you redirect the visit to any URL (such as your affiliate links) of your choice.

# [ CP Global Redirection - Open ]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^veryvery.bad [OR]
RewriteCond %{HTTP_HOST} ^www.veryvery.bad
RewriteRule ^(.*)$ http://www.amazon.com/$1 [R=301]
# [ CP Global Redirection - Close ]

The following two tabs change content below.
  • Bio
  • Latest Posts
facebook-profile-picture
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profileMy YouTube channel

Stephan Pringle

Technology Support Specialist at Sipylus
About The Author: Stephan Pringle is an Information Technology Support Specialist. He covers hardware and software and provides tips for you to troubleshoot and repair issues on your own. In his spare time, he writes articles about the State of New York on his Hackintosh and HackBook and that has helped him to become the top contributor of the New York City section of Yahoo! Answers.
facebook-profile-picture
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profileMy YouTube channel

Latest posts by Stephan Pringle (see all)

  • Importing a PDF File to an Excel File - Saturday, August 19, 2023

Related posts:

  1. Block Spam Referrers via .htaccess
  2. Disable Hotlinking
  3. Block Traffic from URLOpener.com
  4. Protection against DDoS
  5. Fixing a 400 Bad Request
  6. Clean Home Page URL
  7. Custom Short URLs for a Website
  8. Directory Index Filenames
  9. ErrorDocument 410
  10. Microsoft Notepad
  11. Preventing 500 Read Timeout Errors
  12. Fixing Kronos
  13. Error Messages with Roxio
  14. Index of /
  15. Fixing a Black Screen
  16. 49.38.07 Error (4a04)
  17. Avoiding Broken Links
  18. HTTP Error Status Codes
  19. Creating Website Screenshots
  20. Video–Production.com

Comments are closed.




Copyright © 1990-2023 Stephan Pringle. All rights reserved.

The information contained on this website is for your personal use only.
It may not be reproduced in whole or in part, by any means, for dissemination without our written permission.

Stephan Pringle

Technical Support Specialist

  • Keyword Search

  • Topic Sponsor