Mobile app version of vmapp.org
Login or Join
Hamm4606531

: How to set up URL masking on gh-pages and GoDaddy I have a domain that currently redirects www.example.com to example.com. It is hosted on gh-pages. However, there is a resource link I access

@Hamm4606531

Posted in: #Github #Godaddy #Htaccess #Url #UrlRewriting

I have a domain that currently redirects example.com to example.com.

It is hosted on gh-pages.

However, there is a resource link I access from index.html called privacy.html via <a href=privacy.html>Privacy Policy<a>.

When the user clicks that link, he/she gets redirected to example.com/privacy.html rather than example.com/privacy.

How do I set this up so it doesn't have any .html at the end?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamm4606531

1 Comments

Sorted by latest first Latest Oldest Best

 

@Odierno851

If you host your site on github pages and you want to access your file name without extension, then make sure your index.html page is hosted on parent directory/folder.

For example. for privacy page, host your index.html like this

/privacy/index.html


This page can accessible in browser with - /privacy/ also with /privacy/index.html

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme