title: Magento Get url after the main url
body: <p>I have looked all over the internet, but can not find the following answer:</p>
  
  <p>We want to get the part in Magento in .phtml after the main url so if:</p>
  
  <p>domain.com/shoes.html we want to get only shoes.html</p>
  
  <p>This is important because we have a multishop in .nl and .be and we want to use the hreflang. We need to give in both shops the url of both shops so as well from the .be and the .nl and then with the subcategory or product url.</p>
  
  <p>In .phtml you can get the current url with: helper('core/url')->getCurrentUrl();?></p>
  
  <p>With that code you will get the total url so domain.com/shoes.html and we only want the part shoes.html</p>
  
  <p>Would be great if someone knows the answer</p>