We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

An amateur with web design problems, please help

Hi everyone,
I'm designed a website last year using yahoo sitebuilder and I've just tried to redesign the whole thing using dreamweaver.
I have tried to upload this using ftp which has worked but the problem is I now have two different sites. If I put www. before the rest of the domain the old site comes up but if i omitt the www and just put the domain.com the new site is displayed.
Can anyone help me to rectify this problem as I want to get rid of the old site and have my new one with the www. prefix. Hope I've explained this properly.
Thanks to anyone that can offer me help
«1

Comments

  • bingo_bango
    bingo_bango Posts: 2,594 Forumite
    Do you have access to a console which allows you to view the files you have on the server?
    If so, you'll need to copy all the new files into the www folder (ensuring the old ones are overwritten or deleted), as the FTP upload simply places them in the root folder on the server. Therefore anyone visiting hxxp://mysite.co.uk will see the new files, as they are in the root folder, but anyone who visits hxxp://www.mysite.co.uk will see the old site, as the files in there haven't been amended. You have to remember that the www folder is a subdomain of your site.
  • wolfman
    wolfman Posts: 3,225 Forumite
    Will they be seperate folders though? Guess it depends how the server is setup.

    If there are two seperate sets of files, you ideally want to delete the old one, and have both hxxp://mysite.co.uk and hxxp://www.mysite.co.uk point to the new set.

    Also it could be a caching issue, but probably unlikely.
    "Boonowa tweepi, ha, ha."
  • bingo_bango
    bingo_bango Posts: 2,594 Forumite
    Well.... I suppose it could be that there won't be two folders. In my own experience, any of the host servers I've used have had a root folder, and a separate www subdomain folder.
    Trial and error found that out, as I had the same problem as OP. Lots of head scratching later, and actually reading up on hosting gave me the answer.

    Realistically, you could just have the index.htm file in the www folder, and have it point to the root folder for browser requests. That means only one set of files, and less space used, although unless you're hosting video or music content, that's unlikely to be an issue. It would also require you to recode some directory paths in that doc.

    Does your FTP client allow you to specify the upload folder, or just the server? You could set it to upload to the www folder, and problem solved.
  • wolfman
    wolfman Posts: 3,225 Forumite
    Well.... I suppose it could be that there won't be two folders. In my own experience, any of the host servers I've used have had a root folder, and a separate www subdomain folder.
    Trial and error found that out, as I had the same problem as OP. Lots of head scratching later, and actually reading up on hosting gave me the answer.

    Yeah know what you mean. It depends upon the environment and its setup. I've personally only ever had the one web application, and both http://mydomain and http://www.mydomain pointing to it.
    Realistically, you could just have the index.htm file in the www folder, and have it point to the root folder for browser requests. That means only one set of files, and less space used, although unless you're hosting video or music content, that's unlikely to be an issue. It would also require you to recode some directory paths in that doc.

    That'd mean some sort of redirect though, not really an ideal setup. You basically want one folder setup as a web application, and for both addresses to point at that folder.

    It may depend upon the host but they should be able to set that up for you no problem, or it may even be in your web admin panel for your hosting environment.
    "Boonowa tweepi, ha, ha."
  • kylah16
    kylah16 Posts: 73 Forumite
    Ok Thanks for your replies everyone, it's all a bit head baffling and I'm going to have to reread all the advice and try and investigate. I'm sure I'll be back with more questions. Also the logo for my site won't show up its just a box with a square in which I can't understand as it is a JPEG.
    Thanks
  • kylah16
    kylah16 Posts: 73 Forumite
    Ok, I messed around and deleted some files in the file manager on the hosting site (yahoo) , now when i go to https://www.mydomain its just blank if I put https://www.mydomain.com/index it goes to my new site. Am I on the right track?
  • bingo_bango
    bingo_bango Posts: 2,594 Forumite
    When you look at file manager, you should have the same files in the root folder (what you see when you log onto the admin console, and go to file manager), and in the www folder.
    By default, the site should open on the index page, as that is how the server is programmed to operate. That being the case, you should have no need to type hxxp://www.mysite.com/index.htm to open the site, only hxxp://www.mysite.com, or hxxp://mysite.com
    Check which folder is operating correctly. If you need the www subdomain included in the url, then you need to copy the files from there into the root folder, and if only hxxp://mysite.com is loading, then copy the files vice versa.

    Btw...if www.mysite.com just opens a blank page, then you don't have the index file in that folder, or it's named incorrectly.

    And remember that any files linked to (such as jpegs, gifs etc) need to be in the same folder as that particular page calling them, unless the path is to the specific folder they are in.

    e.g. the logo on your site. if the directory path calling the image is simply [html]<img src="logo.jpg">[/html] then it needs to be in the same folder as index.htm

    If however the path is something like [html]<img src="mysite/images/logo.jpg">[/html] then the jpeg image needs to be in the images folder.
  • wolfman
    wolfman Posts: 3,225 Forumite
    A web server can pickup certain file names automatically without you needing to type the whole path.

    For example, http://mydomain/index.html, can usually just be typed as http://mydomain, and it'll pickup the index.html file automatically.

    There's usually a list of default files, things like "index.html", "index.htm", "default.htm" that the server will look for. This can apply to directories too, not just the root folder.

    So for example, http://mydomain/listings/index.html, can be entered as http://mydomain/listings, and the web server will pickup the index.html automatically.

    You basically need to make sure your your default page is named correctly. If it is and it's not being picked up, then it's a server config problem.

    Try using "index.html", if that doesn't work, then "index.htm", and if that doesn't work "default.htm".
    "Boonowa tweepi, ha, ha."
  • kylah16
    kylah16 Posts: 73 Forumite
    hi guys,
    I'm now on my home computer instead of at work and I've typed my site in and it's come up fine. Have no idea what I did or how it happened but thanks everyone.
    Now when I want to update my site and publish it again can I just go to site and then 'put' and it will update?
  • bingo_bango
    bingo_bango Posts: 2,594 Forumite
    When you want to update, you can simply upload the revised files using your FTP client. You'll maybe then need to copy the revised files to the www subdomain folder, and you're done.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.2K Banking & Borrowing
  • 253.6K Reduce Debt & Boost Income
  • 454.3K Spending & Discounts
  • 245.3K Work, Benefits & Business
  • 601K Mortgages, Homes & Bills
  • 177.5K Life & Family
  • 259.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.