Remove protocol, domainame, domain and file extension from URL
<p>let say that in our websites we can have urls like:</p>

<pre><code>http://domainame.com/dir/one-simple-name.html
https://dmainame.com/mail/send.php
https://dmainame.com/mail/read
</code></pre>

<p>etc..</p>

<p>So i would like to retrieve</p>

<pre><code>dir/one-simple-name
mail/send
mail/read
</code></pre>

<p>Whats the best way to achieve it?</p>
