Skip to main content
Sandra Dolcezza
Known Participant
May 13, 2018
Answered

cPanel

  • May 13, 2018
  • 4 replies
  • 3356 views

Hi,

I'm new to the cPanel interface, Im not sure if I'm doing something wrong in there or what..

When I preview my site in a browser from Dreamweaver, everything looks fine, but, then when I upload the site to cPanel and view the site online, everything looks messed up.. the css is not functioning right and the html is missing most of its parts.. what am I doing wrong..?

Can anybody save me from myself..!? This is driving me crazy.

<!doctype html>
<!--[if lt IE 7 ]> <html class="ie6" lang="fr"> <![endif]-->
<!--[if IE 7 ]>    <html class="ie7" lang="fr"> <![endif]-->
<!--[if IE 8 ]>    <html class="ie8" lang="fr"> <![endif]-->
<!--[if IE 9 ]>    <html class="ie9" lang="fr"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="fr"> <!--<![endif]-->
<!--[if lte IE 8]><script src="js/libs/selectivizr.js"></script><![endif]-->
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="author" content="net-solutions.ca">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Services De Nettoyage Résidentiel, Commercial Et Industriel.</title>
<!-- TemplateEndEditable -->
<link href="../_css/main.css" rel="stylesheet" type="text/css">
<link href="../_css/animate.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- TemplateBeginEditable name="head" -->
<meta name="description" content="services spécialisés en nettoyage résidentiel, commercial et industriel dans la grande région de Montréal et ses environs.">
<meta name="keywords" content="Nettoyage Montreal, nettoyage tapis, nettoyage vitres, nettoyage des bureaux">
<!-- TemplateEndEditable -->

</head>

    This topic has been closed for replies.
    Correct answer BenPleysier

    You will need to force using HTTPS. This can be done by adding the following to your .htaccess file

    RewriteEngine on

    RewriteCond %{HTTPS} !on

    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    If you use html5-boilerplate/.htaccess at master · h5bp/html5-boilerplate · GitHub, then you need to unmark lines 351-355

    4 replies

    Sandra Dolcezza
    Known Participant
    May 15, 2018

    The css works in internet explorer and Firefox, but does not display styles in Chrome...

    Does anyone know why Chrome wont link to my stylesheet..?

    BenPleysier
    Community Expert
    Community Expert
    May 15, 2018

    Open Chrome and type the following line into the address bar

    chrome://settings/clearBrowserData

    In the window that pops up, make sure that cached images is checked and click on Clear Data

    Now try you site again.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Sandra Dolcezza
    Known Participant
    May 15, 2018

    Unfortunately this did not work...

    I will save that tip as it might come in handy.

    Thanks for your time.

    Sandra Dolcezza
    Known Participant
    May 15, 2018

    Can anybody understand why when I update my SSL certificate it gives me this error...

    This SSL certificate was already installed.

    The SSL website is now active and accessible via HTTPS on this domain:

    The SSL website is also accessible via this domain, but the certificate does not support it. Web browsers will show a warning when accessing this domain via HTTPS:The SSL certificate also supports this domain, but this domain does not refer to the SSL website mentioned above:

    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    May 15, 2018

    You will need to force using HTTPS. This can be done by adding the following to your .htaccess file

    RewriteEngine on

    RewriteCond %{HTTPS} !on

    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    If you use html5-boilerplate/.htaccess at master · h5bp/html5-boilerplate · GitHub, then you need to unmark lines 351-355

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Sandra Dolcezza
    Known Participant
    May 15, 2018

    Thank you sir !

    This WORKED

    Thank you so much !!

    Sandra Dolcezza
    Known Participant
    May 14, 2018

    Hi Nancy,

    Thank you so much for taking your time to clearly demonstrate directions in resolving this issue.

    I had already defined the site and connected to the server successfully. However, the site still does not go live to the browser correctly, even though in Dreamweaver's preview in browser it looks fine.. after uploading it and viewing it in a browser, it seems the CSS file is missing..at other attempts when trying to resolve it, the CSS comes in with weird styles.

    In cPanel I created a folder in the public_html that holds all the site files, could this be an issue..?

    Thank you tremendously for your support !

    Services De Nettoyage et Entretien Ménager à Montreal

    WolfShade
    Legend
    May 14, 2018

    I cannot access your website from where I work - the domain is proxy blocked.  However, before I received the blocked message my browser gave this important piece of information:  "The owner of geniux.ca has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website."

    This makes me suspect that the CSS issue is SSL/TLS related.  Check all of your paths to make sure that they are pointing to the correct files.  If you are using the FQDN (geniux.ca) as part of the path, either check to make sure they are all https, or use protocol agnostic links (ie, starts with //, not http:// or https://:  //geniux.ca/path/style.css)

    Also, check your SSL/TLS certificate.  It looks as though it's not registered to your domain.

    HTH,

    ^ _ ^

    Nancy OShea
    Community Expert
    Community Expert
    May 13, 2018

    If you defined your site in DW, you don't need to use C-Panel to transfer files to your server.

    Go to Site > New Site or Manage Sites...  see screenshots.

    Tell DW where your local site folder is located on your computer.   Example, C:\MyTestSite\

    Under servers, enter your FTP log-in credentials supplied by your hosting provider.   Root folder varies by hosting plan.  If unsure what to use here, ask your host.

    When you're done, hit the TEST button to confirm DW is able to connect to server.

    From the Files Panel, click on your local site folder and hit the UP arrow to upload files to server.   Below is my Files panel expanded to show Remote Server on the left and Local Files on the right.   The file structure should be nearly identical on both sides.

    If you're still having trouble, please post the URL to your site.

    Nancy O'Shea— Product User & Community Expert