Hello i got an Error 404 with subdomain in ssl
when i run panel.terahost.org in https
i get a blank page https://panel.terahost.org
i found the error in
error is
''This page is trying to load scripts from unauthenticated sources''
its trying to show unsafe script which is uploaded up there on secured page
note the panel is in orginal its uploaded here
46.166.168.175/Tera-Host/index.php
but i use this script to show it up
https://www.mediafire.com/?87syl3od21qdemy
You should have wildcard ssl for subdomains to work. If you have wildcard then also it is showing that error then please check your html rendering. You should have https in front of all your urls on page. If your html have any link of http then it will show this error. I can see that you have frame of page with url http://46.166.168.175/Tera-Host/index.php change it to https.
Related
I am trying to verify my SSL certificate for my website.
So I did upload a file to my server but when I try to access the file it is only working when i enter the url with www when I do it without www it redirects me to the index of my wordpress page.
Here is the url which redirects to index.php without the www
http://vanloonautobedrijf.nl/.well-known/pki-validation/3619BF0D6B387464A49478D183780BF0.txt
I did empty my htaccess file and still cant reach it without www
You have a redirection (301) configured somewhere which redirects all non-www requests to the same URL (see attached screenshot). In your case, it's not what you need, because the path info + query string is lost during that redirection.
When you find where is your redirection defined, try fixing it by setting the option to keep the path/query from the original URLs. The exact method to achieve this is specific to the way the redirection was implemented.
If you find where your redirection was configured, update your question and we might be able to help you fix it.
As said on the title, whenever I log to my admin page in Wordpress I get this notice in console:
Mixed Content: The page at 'https://site-url' was loaded over HTTPS, but requested an insecure favicon 'http://site-url/wp-content/uploads/2017/06/cropped-cropped-logo-square-192x192.png'. This content should also be served over HTTPS.
Also, I tried to load another favicon using Appearance->Customize, but it is still loaded over HTTP.
Is this a Wordpress bug? or how can I solve this so this warning does not appear?
For everyone still searching:
Go to: Settings - General and change http to https in both URLs
I have a WordPress site that displays the following error in the browser console:
Failed to load resource: the server responded with a status of 500
(Internal Server Error)
The site loads and functions fully. The error is not present on local development of the site and does not show up when the site is moved from production to staging. The .htaccess file is the same on all sites and shows no errors. The site is part of a large network of multisite domains and none of the subdomain sites have the error. It is only the primary domain that is affected. Plugins are network activated on all sites and do not appear to have any issues.
I have viewed the network tab and it appears that the error only shows up on three pages on the site. On an error page that loads normally, I see other under the initiator section. When I attempt to load the page through https, the initiator section displays https redirect.
The solution was to create a new page, manually add the content in, and delete the old pages that displayed 500 internal server errors. I assume that something was corrupted in the WordPress database for these pages or they had incorrect permission previously set. Either way it is fixed now!
I am trying to load a script on a WordPress HTTP site using PHP. The script itself is on another site, and is only accessible through HTTPS. I am loading the script using the line:
wp_enqueue_script('airtable_embed', 'https://static.airtable.com/js/embed/airtable_embed.js');
However, when the page loads, the https in the url is always replaced by http, and the script is not available through HTTP - only HTTPS. Since it can't find the HTTP version, it gives the following error:
http://static.airtable.com/js/embed/airtable_embed.js?ver=4.3.1
Failed to load resource: the server responded with a status of 403 (Forbidden)
The WordPress documentation says that
Remote scripts can be specified with a protocol-agnostic URL, e.g. //otherdomain.com/js/their-script.js.
So, I think the reason the protocol is being changed from HTTPS to HTTP is that WordPress forces it to use the same protocol as the current site. How can I get around this and include the HTTPS script in my HTTP site?
If you paste the airtable embed snippet into an HTML page and then inspect the DOM, you can just grab the raw HTML for your wordpress site.
What should happen when a page doesn't exist on your site? If I have a custom error page set up in my .htaccess, I get a 302 temporary redirect to my 404 page (where I send 404 headers). Is this how it should work? Or should I do a 301 permanent redirect to the error page? I'm using php and Apache.
If it never existed, you should send 404 Not Found.
If it used to exist, but doesn't any more, you should send 410 Gone.
Set up your server to send the error response directly.
You shouldn't redirect to an error page. That essentially means the conversation would go:
Browser: Can I have /foo?
Server: You can find /foo at /bar!
Browser: Can I have /bar then?
Server: I can't find /bar.
Bait and switch is never nice.
The non-existent page has not "temporarily moved" (301) or "permanently moved" (302) to a page about the file not existing, it doesn't exist. The correct header to send is a 404, not anything else.
Don't redirect anywhere, instead serve your "file not found" page content at the URL that was requested.
If you got a static error page, say 404.html, that apache shows when a page is not found, and you need to be able to serve 404 pages for your dynamic pages as well, you can do that by sending the 404 header from PHP and feed the error page as well:
<?php
header("HTTP/1.0 404 Not Found");
readfile("404.html");
?>