Transfer/Import Website With Many Pages

Please follow this procedure if you need to import a website with lots of pages. It is good where the URLs are all natural filenames, ending in .html, .asp, .cfm, .php etc. However, it is not good if you have lots of pages with parameters...

Potentially you can import/transfer a large 20 page website, with full CMS capability, in a couple of hours following this process.

  1. Use the reseller COPY website setup function to get started, which will WGET all your old website files into the new webspace. 
    • OR create a new trial webspace, delete all the pages, and use FTP to transfer all your old website files in
  2. In the Manage Files area (or using FTP),
    1. rename any file suffixes like .asp .php .cfm to .html
    2. merge all the stylesheet files and save as /styles.css (OR add your customer references in a file chunk called meta.html)
    3. merge any javascript files and save as /_scripts.js (OR add your customer references in a file chunk called meta.html) 
  3. Search and Replace to fix up your URLs (note this may cause issues with offsite links)
    1. Search and replace .cfm and replace with .html, etc if applicable
    2. Check image URLs, then Search and replace any erroneous HTML code.
    3. Search and replace is fast and efficient to fix lots of errors quickly.
    4. Search and replace header code to be removed from the content pages (issues with newline detection)
    5. Search and replace footer code to be removed from the content pages (issues with newline detection)
  4. In the CMS, change the design template to [CONTENT] only for a start....
    1. Then attempt to rebuild a new template using all the fields.
    2. As you add design elements to the design template A, then you can remove them from the content. Saving your design template code to a 3rd application like notepad, then using the search and replace function may help you...
    3. Typically the easiest way to create your template is to view the HTML of one of the files, copy everything between the BODY tags, and paste into CUSTOM TEMPLATE A. Once you have done that, delete any page specific content and replace with <h1>[HEADING]</h1>[CONTENT]. Rename any stylesheet to /style.css and link any other required scripts etc as per our other "template design" help files, or copy and paste any required <LINK> tags into the meta.html include file.
  5. Convert all your files into templated pages.
    1. Web pages menu, add pages
    2. under tooltips click on "Create pages from html files"
    3. It will search for all the files in your root directory. Select the ones you want to import. It will automatically create pages with the same filenames and metatags as the original pages... 
    4. Use the "Menu Button Ordering" area under design or web pages, to rename and reorder all your menu buttons quickly.
    5. Once you have got your template perfect, you then need to remove the template HTML from your pages. Get confident with where the template HTML starts and ends, refer 4.3 above.
    6. Click on the main menu button in the CMS under web pages for each page, 1 by 1. In the tooltips you will find a small link to edit the "HTML content". This is a fast way to remove all the unwanted template HTML header and footer, leaving behind only the content. Main page heading can often remain hard coded in the content. 
    7. Remove any FORM tags. Change the CMS page layout of any FORM pages to a "enquiry form" or file upload equivalent if required.
  6. Test and continue to fix using the Search and Replace function until perfect.
  7. If the original URLs or filenames were changed, then you can fix this in the SECURITY, edit .HTACCESS file. Look for the URL rewriting examples in the tooltips.

Index Previous Next