SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2009
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to redirect domain.com to www.domain.com

    The question is in the title, how do I redirect mydomain.com to www.mydomain.com?

    I have VPS with Windows Server 2003 Standard 64-bit and Plesk Control Panel.
    Quick References:
    http://www.LiveDateLove.com - free dating site
    http://www.getspeed.org - free internet bandwidth test
    http://www.alinasguide.com - web guide to internet services

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,656
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    Alex,

    M$ has attempted to duplicate Apache's mod_rewrite so you should be able to use the code in the tutorial article linked in my signature.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Wizard SiberForum's Avatar
    Join Date
    Dec 2007
    Posts
    1,197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I additional to the David's words I recommend you set 301 redirect. That could be in the in the htaccess file or on the server side

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2009
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, that's what I need - 301 redirect. Can you be more specific how to do it? I don't have htaccess file, how do I create it and what do I write inside the file?
    Quick References:
    http://www.LiveDateLove.com - free dating site
    http://www.getspeed.org - free internet bandwidth test
    http://www.alinasguide.com - web guide to internet services


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •