How to remove filenames on a single page? [closed]

1

On the home page of my site, I'd like to remove all filenames from the URL, so I want the domain to stay only. For example, if I have a site like this:

  

www.site.com.br/algumacoisa/principal.php

On the main page, only , I want it to look like this:

  

www.site.com.br

I want to remove everything only on the main.php page. In the others I want normal.

    
asked by anonymous 06.07.2017 / 21:09

1 answer

0

I believe you can do this with Javascript using:

window.history.pushState("", "", "/");

Documentation: link

    
06.07.2017 / 21:11