Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default http://www. vs Http: How Do I redirect ?

    I don't know if this makes a difference or not.
    According to my Seo person he's not sure but it would be better off fixing.

    http://nothingbutcostumes.com
    to redirect to http://www.nothingbutcostumes.com

    Is this done in Zen or do I speak to my Host Provider?

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: http://www. vs Http: How Do I redirect ?

    You can alter both config files to achieve desired result.

  3. #3
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default Re: http://www. vs Http: How Do I redirect ?

    I have everything set in my config files that way.

    What I am trying to accomplish is that when you just enter
    nothingbutcostumes.com in the url bar it goes to

    http://nothingbutcostumes.com/
    (However anything you do next goes to a http://www.nothingbutcostumes.com....)
    Page.

    What I wanted to see if I can make it that when a person enters
    nothingbutcostumes.com in the url bar it automatically adjusts to
    www.nothingbutcostumes.com

    Just like if you enter yahoo.com in the url window it converts it to
    http://www.yahoo.com/

  4. #4
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: http://www. vs Http: How Do I redirect ?

    Put this in your root level htaccess:

    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R,L]

    obviously changing domain.com to your domain.

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: http://www. vs Http: How Do I redirect ?

    http://www.webweaver.nu/html-tips/web-redirection.shtml
    Full explanation with details at above

  6. #6
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default Re: http://www. vs Http: How Do I redirect ?

    The code you gave me did not work

    But a the link showed me to what I was after.

    Adding this (Which is the only thing in mine now ) .htaccess file

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^nothingbutcostumes.com [NC]
    RewriteRule ^(.*)$ http://www.nothingbutcostumes.com/$1 [L,R=301]
    Thanks for the help

 

 

Similar Threads

  1. Redirect Http to www
    By BliszTec in forum General Questions
    Replies: 3
    Last Post: 23 Apr 2011, 11:05 PM
  2. Replies: 6
    Last Post: 18 Aug 2010, 10:32 PM
  3. Change from http:// to http://www.
    By jo_h1971 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Dec 2009, 08:18 PM
  4. http://www.*** showing a different page than http://***
    By cellmania in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 19 Mar 2009, 07:43 PM
  5. Weird issue with http://www vs http://
    By bgroup99 in forum General Questions
    Replies: 2
    Last Post: 23 Apr 2008, 03:08 PM

Posting Permissions

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