title: Formatting URLs
body: <p><strong>The Scenario</strong> <br/> <br/>
  Soooo many questions on this topic but I still don't get it. So I apologize. <br/>
  So, You've certainly urls like this :
   <a href="https://i.stack.imgur.com/OrhW3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OrhW3.png" alt="Cool Urls"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ORVtR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ORVtR.png" alt="the second img"></a></p>
  
  <p>Since, I'm self taught, these cool looking urls always confuse me. You see that the article heading words are separated by a hyphen. Looks neat and all. Also, you can see that there is no .php or .html (or any other technology used) extension.</p>
  
  <p><strong>The question</strong> <br/> <br/>
  I also want to format my urls like this... For example : to get the post on my blog, I use post_id via GET to get the post from the database.. the current url structure looks like this : 
  <a href="https://i.stack.imgur.com/Z0RhT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z0RhT.png" alt="enter image description here"></a></p>
  
  <p>Can I get this url to be formatted something like this?</p>
  
  <pre><code>candhblog.base.pk/article/2
  // or something like this :
  candhblog.base.pk/article/my-favorite-country
  </code></pre>
  
  <p>I've seen many questions like this and solutions like "edit the .htaccess file" or using "<code>RewriteEngine</code>" but, I want to know how this works. How to create your urls as to include the article heading (for my example). Do I need to create folders? Please be comprehensive :) </p>