Netlify remove .html on url slug - html

I am using netlify to host an html webiste. On the url, each page goes to example.com/name_of_html_file.html. How can I remove the .html from the url slug. If it has to do with the domain provider, the domain is registered through google domains, but the webpage is hosted through github and netlify. Thanks!

You need to untick Disable asset optimization under Settings -> Build & deploy
See link for example taken from.
If that does work try the solution from the community.
Truly hope that helps.

Related

How to host my own website with my own html documents

I know this is the most basic of questions. I made my own website in HTML documents. I bought a domain name from google. How can I publish this, how can I host it? I don't want to use any website creator, I want to publish my own files that I worked on.
You can use Github to host your website on your own domain.
You have to add the whole files needed for the website. Then in the settings of your repo use the Github pages feature and enable it. Change the source of Github pages to host in your own domain. Then you have to add some A and CNAME records of your domain to point to github servers.
Here are the full steps for the process - https://www.geeksforgeeks.org/publish-websites-on-github-pages-with-a-custom-domain/

How to fix localhost Facebook apps “Error: Can’t Load URL: The domain of this URL isn’t included in the app’s domains”

I know that this question has been asked previously in this link Facebook OAuth "The domain of this URL isn't included in the app's domain" , but the solution is not working for me and it doesn't strictly similar to my issue.
I'm trying to setup Facebook OAuth to work with my application that is being developed locally on my machine.
I followed every steps from facebook guide:
I created my application
I added a web platform with the url http://localhost/
I added Product Facebook Login
I added code for Continue with Facebook button described here in my html page
Facebook button is on my page but it doesn't work when I click on it (Error: Can't Load URL: The domain of this URL isn't included in the app’s domains).
I tried to add a domain (localhost, http://localhost, http://localhost:5000) but it didn't work.
I then added http://localhost:5000/ to the field 'Valid OAuth redirect URIs', but no improvement.
Here my Facebook login settings :
login setting
Thanks for your answers !

How to link my Google Domain to a custom HTML webpage

My team and I have recently purchased a Google Domain, but when trying to have the website it is connected to, it only gives us the options of website builders. We have a GitHub repository with all of our files that we want it to host, but again, only website builders. Can I make my Google Domain connect to a custom HTML page?
You can host your content on GitHub and serve them with GitHub Pages
https://pages.github.com
You can have your Google Domains domain point to it.
https://help.github.com/articles/using-a-custom-domain-with-github-pages/
You'll need to add a CNAME file to your repo with your domain URL in it. Add it manually or follow the instructions here.
https://help.github.com/articles/adding-or-removing-a-custom-domain-for-your-github-pages-site/
You'll need to add some A records at the Google Domains control panel with the IP addresses of GitHub's servers (currently 192.30.252.153 and 192.30.252.154).
https://support.google.com/domains/answer/3290350?hl=en

Chrome extension inline install not working in verified IP site

I have verified my IP (not the domain) using webmasters tool and it successfully verified.
I have added <link> and called chrome.webstore.install() and getting this error:
Inline installs can only be initiated for Chrome Web Store items that have one or more verified sites.
I think I should call chrome.webstore.install() from subdomain or a page. So I am calling from a page (index.html) but url is just the IP.(like http://52.1.165.721/#/home) (Angular UI routing and index is default page.)
My questions are:
1.I didn't have a domain yet. Is that a problem?
2.I have to install extension from home page itself. I got some websites (eg: https://adblockplus.org/) as examples. But don't know how to do that. Please help.
I went through
How to test inline installation of Chromium/Chrome extensions locally? ,
Chrome Inline Install for extension not working and
chrome.webstore.install(); Not working on verified site
So as Xan said I added Website link and didn't fill Verify that this is an official item for a website you own: because my domain was not listing there.
The problem was I uploaded extension using my work account and verified site using my personal account. So I added my other account as an owner with help of https://support.google.com/webmasters/answer/2454036?vid=1-635766230904751668-2044003462 and refresh list does the trick.
So I selected the verified site from drodown and after a two minutes inline install worked.
Turns out:
1.We don't need to buy the domain. IP will work.
2.Calling chrome.webstore.install() from home page itself will work too. (Url doesn't matter I think)

How do I create a website using HTML?

I have recently learned how to write HTML pages on a standalone computer, with all the references given to the directories in the local drives.
How, then, can I do the following:
Create a website, using HTML. I know I'll be able to create its look, but I don't know what should be given as the reference address (URL) if there is a hyper link (like: href). So how do I get an address that can be used on the Internet?
How do I upload this file to the Internet, do I have to upload it onto a server? If yes, which?
If there are multiple pages then how do I create references between?
Most importantly if I have to create this site should I use HTML, or something else?
When developing a website you will want to observe the following:
You need to regsiter a domain name that you want people to use to access your site. You can do this using any number of online registrars
You will have to get a web host...again there are many. They will give you instructions to upload using FTP or otherwise
The references between pages on your website will have to use relative addresses. That is /page2.html rather than http://www.myserver.com/page2.html.
You have to use HTML to create the front end. Plus CSS and maybe JavaScript. If you need dynamic content like accessing a database etc then you have to learn server side languages like PHP, ASP.NET or JSP.
To reference pages and resources (images, css, et.c.) you can use either relative paths, virtual paths or absolute paths.
A relative path shows the relation between the items, for example:
An image in the same folder: art.gif
An image in a subfolder: images/art.gif
An image in a parent folder: ../art.gif
An image in a parallel subfolder: ../images/art.gif
A virtual path starts with "/", so it's relative to the root folder of the site:
An image in the root folder: /art.gif
An image in a subfolder: /images/art.gif
An absolute path specifies the complete URL to the resource:
An image in a subfolder: http://www.mysite.com/images/art.gif
To put the pages on the net, you need some kind of hosting. You can start with searching the web for "free hosting" and you will find plenty of sites where you can try this out.
Most free hosting offer a subdomain or subfolder for your site, like mypage.thewebhost.com or www.thewebhost.com/mypage. If you want your own domain like www.mypage.com you need to register it for a fee. Many hosts offer a domain name "for free" when you buy web space, but you will of course end up paying for it in the end as it's included in the fee for the space.
Regardless of how you create the page, it will use HTML in the end. That's what the web is made of. If you use a server side language like ASP.NET or PHP, they still output HTML pages for the browser.
This is a great site if you're just getting started with HTML: http://www.w3schools.com/
I think you are asking about how to publish your site on the web and then access it.
Buy a domain, go to any domain hosting site like godaddy.com etc.
After buying domain the domain hosting company will send you the details of your account/pwd
With you account pwd you can access their ftp server.
Put your current html pages on their ftp server (put them in the public folder)
Access your html pages on the web now.
Also note it will take atleast a few minutes before your domain info gets published on the dns servers, i.e to say it will take a while before you can access your website (usually a few minutes)
Try giving relative urls in the href link. For e.g. if you want to link index.html to page1.html in the same folder you don't need to give complete path of the page1.html for the link. You can simply write Page 1
You can learn more about relative urls from here
You can get a free web hosting account from sites like http://110mb.com , they also provide a free sub-domain and a ftp account.
You need HTML to create webpages. There's no other option.
Hope this helps.
Google is your friend. There's tons of help for web site development. I just recently switiched from HTML to PHP, but I recommend you use HTML until you are fully comfortable with it.