Changing URL to WWW

Discussion in 'HTML & Website Design' started by ddzc, Nov 13, 2008.

  1. #1
    Hi all,

    I bought a templatemonster template. I loaded it up and i'm starting to edit. When I type my url though, it enters as http://mysite.com. Does anyone know how I can configure this so it executes http://www.mysite.com. I looked through the template and can't seem to figure out what to do to make this work.

    Thanks much
     
    ddzc, Nov 13, 2008 IP
  2. VarriaStudios

    VarriaStudios Member

    Messages:
    246
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    you need to edit the url http://mysite.com in your html editor and make it point to your website.

    hope that helped
     
    VarriaStudios, Nov 13, 2008 IP
  3. ddzc

    ddzc Peon

    Messages:
    487
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    we'll..not sure where to edit that. I checked my index.html, I can't find anything which defines how the URL should execute.
     
    ddzc, Nov 13, 2008 IP
  4. mkda

    mkda Active Member

    Messages:
    139
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Are you executing that url in your browser or viewing it through an editor?

    Is there an attached js/javascript file in that template that can redirect the url?

    Are you uploading it to a web host which is configured to change the url automatically?
     
    mkda, Nov 13, 2008 IP
  5. snake charmer

    snake charmer Guest

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you need a .htaccess file. google it!
     
    snake charmer, Nov 14, 2008 IP
  6. Australianfranchises

    Australianfranchises Peon

    Messages:
    1,230
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hey i got your problem. The error that u r facing needs 301 redirection. The person who has designed your site, might have given you the details of control panel of your site. Or you can directly contact them for this. They can guide you up..
     
    Australianfranchises, Nov 14, 2008 IP
  7. ddzc

    ddzc Peon

    Messages:
    487
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks for the replies,

    mkda, i'm executing the url in my browser. I'm with hostgator as my host. I checked my 301 redirect in my admin panel and I configured it to redirect to www. The thing is, it takes longer to load the website though. Is Is there any other way I can run this site without having to 301 redirect every request?

    I have a .htaccess file....do I need one for every domain on my account though?
     
    ddzc, Nov 14, 2008 IP
  8. bryanfilm

    bryanfilm Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    the template has nothing to do with your address. As posted above you need to edit your .htaccess file that is on the server (you do need to do this for any original domain name that you have) do a search for www vs non-www and you will get all the info you need on how to do this. It is probably running slow for you because you made the change is your control panel and no the .htaccess file
     
    bryanfilm, Nov 14, 2008 IP
  9. Sphinx1994

    Sphinx1994 Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Simple, imput this into your .htaccess:

    Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html
    Code (markup):
     
    Sphinx1994, Nov 14, 2008 IP
  10. Nick252

    Nick252 Well-Known Member

    Messages:
    983
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    110
    #10
    Redirect non-www to www

    
    Options +FollowSymLinks 
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} ^yoursite.com [NC] 
    RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]
    
    Code (markup):
     
    Nick252, Nov 14, 2008 IP
  11. ddzc

    ddzc Peon

    Messages:
    487
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I got it working by editing the htaccess as suggested...thanks everyone
     
    ddzc, Nov 17, 2008 IP