SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2010
    Posts
    586
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Where Do Unprogrammed HTTPS pages Come From?

    Sitepoint Members,
    For no know reason, google is starting to index https versions of my pages of my site that don't exist. When you click on the search engine result link of one of the https, I get "This Connection is Untrusted" from firefox and saying my site has an invalid certificate. Any ideas on what can cause this?

    Thanks,

    Chris

  2. #2
    SitePoint Addict
    Join Date
    Aug 2013
    Location
    New Zealand
    Posts
    274
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Possibly it is referring to your web hosts certificate, especially seeing you don't mention installing one of your own.

    You may be able to add a rewrite rule to redirect request back to http. Not sure how to do this off the top of my head.

  3. #3
    SitePoint Evangelist
    Join Date
    Jan 2010
    Posts
    586
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    According to my webhost, the files (html files) are likely in google's servers and not in my webhost account. I noticed that the addresses showed there's a folder in the home directory that also doesn't exist. It appears that the folder that doesn't exist in my webhost account contains the files that don't exist in my webhost account, but apparently they do in google's servers. How https fits into all this I don't know but all pages using the non existent html files are https pages (that don't exist). I used a Disallow in my Robots.txt and it stopped google from indexing the non existent files. Actually I did this months ago. Recently, I forgot why I put the disallow in and removed it thinking the problem was fixed by something I or my webhost did. Taking the Disallow out brought back indexing of the non existent files. I really don't think that those files in google's servers will ever go away.

  4. #4
    SitePoint Addict
    Join Date
    Aug 2013
    Location
    New Zealand
    Posts
    274
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Not that I've done this before but I have heard you can remove the old cache from Google webmaster tools

  5. #5
    SitePoint Evangelist
    Join Date
    Jan 2010
    Posts
    586
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I made some progress on this finally.
    Google talks about this problem ever so briefly
    (find "https" on this page https://support.google.com/webmaster.../1269119?hl=en)

    This site talks about the problem pretty well
    http://www.elevatedsearch.com/how-to...http-htaccess/

    and then these three others also offer simple htaccess solutions
    https://sites.google.com/site/onlyva...-apache-server
    http://wp-mix.com/htaccess-redirect-http-to-https/
    http://justcoded.com/blog/301-redire...-via-htaccess/

    Mainly these solutions
    RewriteCond %{SERVER_PORT} ^443$ [OR]
    RewriteCond %{HTTPS} =on
    RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]

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

    RewriteCond %{SERVER_PORT} ^443$
    RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]

    The first one, I don't know, why would you want to turn https on?
    Second, why would you want to turn it off

    Third seems best because whether https is on or off it directs to http.

  6. #6
    SitePoint Evangelist
    Join Date
    Jan 2010
    Posts
    586
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    But the code above didn't work for some reason.

  7. #7
    SitePoint Evangelist
    Join Date
    Jan 2010
    Posts
    586
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    One place Unprogrammed HTTPS pages Come From is accidental, malicious, or autogenerated SSL follders in your Home Directory (and maybe anyplace else). I found it and removed it. Let's see what happens.


Bookmarks

Posting Permissions

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