1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Want to redirect my www domain to non www domain

Discussion in 'Site & Server Administration' started by FreeFun4Every1, Jun 26, 2010.

  1. #1
    Hello all
    i have wallpaper site but with www and non www both are different same site but if i had login in non www domain so it is not showing me in domain with www:confused:

    so i want to permanent redirect my www domain to non www domain
    this are links of my domain with www and without www

    i am using Bluehost hosting service i had tried permanent redirect but it give me the following error msg

    Apache detected an error in the Rewrite config.
    
    Syntax error on line 28 of /home2/wallpaq5/public_html/.htaccess.p0hL8l9i156Leey5JiKgTGUfJRmKtC5w:
    RewriteRule: bad flag delimiters
    
    Please try again. 
    Code (markup):
    plz help me....
     
    Solved! View solution.
    FreeFun4Every1, Jun 26, 2010 IP
  2. #2
    When a site is hosted, by default it works with both www and non-www. If you would like to redirect www.domain.com to domain.com (i.e. from www to without www), open the .htaccess file of your website located under "public_html" directory and add the following:

     
    madaboutlinux, Jun 26, 2010 IP
    FreeFun4Every1 likes this.
  3. FreeFun4Every1

    FreeFun4Every1 Prominent Member

    Messages:
    1,109
    Likes Received:
    232
    Best Answers:
    9
    Trophy Points:
    365
    #3
    Thank you
    it works perfectly..
     
    FreeFun4Every1, Jun 26, 2010 IP