Website not opening on some browser - html

I've a website www.makibs.com
It is an addon website on shared host with another website i.e 2 domain name on same hosting.
I'm using cpanel and added this domain and uploaded all website data into root directory/makibs.com folder.
Now when I try to load website it sometime loads on both chrome and firefox especially in incognito mode but sometime it wouldn't load and on mobile it load when entering prefix www without it its not loading on mobile also.
How can I fixed it?
anyhelp would be appreciated.

The issue seems to be like Addon domain. When you are adding add on domain on your shared hosting you must have to specify www or not while adding add on domain name.
If you have write www up front in domain name then it will not run without www in mobile phones. The domain is working in chrome and mozila because desktop browsers fetch www automatically..
Thanks

Related

github pages site doesn't work in some browsers

I made github pages site with a custom domain.
It runs in Tor and Safari but I get "This site can’t be reached" message trying to run it in Chrome and some other browsers, what could be wrong?
The repository is public, cache is cleaned.
There was a problem in C:\Windows\System32\drivers\etc\hosts file where my domain name was pointed to localhost
the file was changed probably probably due to my attempts to host the site on a laptop

Mediawiki: Links to open local files on the server doesn't work

I have MediaWiki installed on a synology server. I would like to create a link on the wiki that would allow opening of files on the same server.
Here are the steps I did to achieve this:
Added $wgUrlProtocols[] = "file://"; in LocalSettings.php
A test file on the server: file://myServerName/path/to/file/test.txt. Putting this URL in my chrome browser directly opens the file.
Create a page in MediaWiki with a link to this file using [[file://myServerName/path/to/file/test.txt]]
When I click on the generated wiki page, nothing happens. However when I hover on top of the link, it shows the correct URL.
Can someone please point out what additional steps I need to do to get this working?
The file:// protocol points to the file on your computer. I'm not fully sure, but I think you cannot use it to retrieve file from a different machine (read my comment below about samba shares).
From quick research it looks like Chrome browser blocks requests with file:// protocol, But browsers like IE should allow you to open those files. It is done because of security reasons so the malicious site cannot open local files without your permission. You might bypass that by installing a special plugin in Chrome (look for Enable file links)
Instead of using file protocol, make those files available via Synology WebStation, and then create links that point to the file via webstation (not via path on the server). With that approach, links attached on your MediaWiki pages will work as those will be regular links.
If you don't use the WebStation, you might also try with ftp:// links (use the FTP service), or link to samba shares - that's where the file:// protocol might work, but again - I'm not sure and I cannot test it as I do not use windows.
I think that the safest/easiest/fastest way is to expose those files via WebStation.
Source: https://en.wikipedia.org/wiki/File_URI_scheme
The file URI scheme is a URI scheme defined in RFC 8089, typically used to retrieve files from within one's own computer.

Blank page displayed when accessing html file from local host in XAMPP

I've been going mad for the last two days trying to understand why my localhost connection merely displays a blank page in any browser for my "index.html" file in my "htdocs" folder in XAMPP. The page is blank in every browser (Edge, Chrome, Firefox, IE). Strangely, I can view the source code fine for the page in the browser though! Even more strangely, my "index.html" file displays a blank page even when it's loaded from another location other than htdocs (such as the desktop). And my test html file I created displays just fine using the htdocs folder in XAMPP. I'm using the default Apache ports 80 and 443. I'm also using Windows 10.
Could this be some error in my webpage code? I'm doing pretty vanilla stuff here: just CSS/HTML and Bootstrap. All CSS/HTML/Bootstrap files are in the htdocs directory. If you'd like to see the full code, you can go to my publicly hosted site at stephengladwin.com You can also view my current XAMPP code for my "index.html" file in the attached screenshot.
Here's what I've tried:
-Unticking the "use ports 80 and 443" box in Skype
-Re-installing XAMPP
-Updating the config file to listen to a different port (used port "123")
-tried disabling "World Wide Web Publishing Service" in services.msc
Thanks in advance for any help you can provide!
XAMPP Code
The best question is the one you answer yourself! Turns out it was a bootstrap error. In the Chrome browser inspect tool I opened the console and lo and behold, there was an error where the browswer couldn't access the "tether.min.js" file which bootstrap requires. Indeed I did have the tether file linked in my index.html file, but it was not in the right order in the code flow. It had to come before the javascript link. Now my index.html page displays fine on the localhost via XAMPP!

Site cannot be installed: the page is not served from a secure origin

I have created manifest.json to a site to enable to save the web app icon on a desktop.
My developer website is over http - Which doesn't work when I click on add to home screen from application tab.
I am getting console error:
Site cannot be installed: the page is not served from a secure origin
The same code works over https.
How can I simply bypass this issue in http
Note : I have followed the following step in chrome browser, it didnt resolve my issue.
Stackoverflow previously Question
Any help will be greatly appreciated.
chrome://flags/#unsafely-treat-insecure-origin-as-secure
enabled and add site origin
The problem was service workers will only register and install on the secure origin. So followed following steps:
1) Go to chrome.exe path in the program files create shortcut of the chrome on the desktop
2) right click on the shortcut - Go to properties - update the target with the below changes
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --unsafely-treat-insecure-origin-as-secure=http://wzy.xyz.com,http://x.xyz.com --user-data-dir=/anydirectory/
Note: Make sure that you google chrome executable file is present in the above mentioned location.
Also this is only to test in the local environment.

How to create a hyperlink to shared network directory or file?

I've checked the following two related discussions:
1. How do I make a hyperlink to a local executable?
2. An URL to a Windows shared folder
3. File Url Cross Domain Issue in Chrome- Unexpected
4. Firefox Links to local or network pages do not work
The following links work when I visited the website on localhost. That is, http://localhost.
A Shared Network Directory
A Shared Network Directory
A Shared Network Directory
But when I visited with http://172.21.1.123, all of above links have no response.
The debug console shows that Not allowed to load local resource: file://172.21.1.123/DIR.
Test Environment (Both of them have the same result.):
- Chrome 28.0.1500
- IE 10
If it is due to the security reason, any configuration to turn off? Or any idea?
The reason that you cannot link to a network share from an external/hosted/live site is because of security features of latest browsers like Firefox.
You can only open local network shares from a local HTML document.
The only way around this is to install a plugin for your browser that removes or disables this security feature as far as I know.