Displaying a short URL for a website
<p>I am not clear on how to frame my question. I am making the website for my college fest, and although I know HTML, CSS, I don't know anything of PHP. I just want to display my URLs like this:-</p>

<p>www.somesite.com/somepage (something like that)</p>

<p>instead of :-</p>

<p>www.somesite.com/somepage/index.html</p>

<p>How do I do that? Thanks for any help. I am new to all this</p>

<p>edit: I have tried something like this, just removed the constraint-</p>

<pre><code>&lt;script&gt; 
  setTimeout (function () {
    if (typeof history.pushState === "function") {
      var width = window.innerWidth || screen.width; 
      if (width &lt; 768) {
        history.pushState(null, null, "/short-url"); 
      } 
    } 
  }, 10 ); 
&lt;/script&gt;
</code></pre>

<p>Didn't work. The console gave an error "Failed to load resource" for a lot of files.</p>