Jump to content

{$base_uri}{$request_uri}


radus

Recommended Posts

Hi,
 
I need to display page url like www.domain.com/page-url.html.
 
If i use {$base_uri}{$request_uri} then result is www.domain.com//page-url.html , having an additional [ un-needed ] slash "/"

 

Is there a solution ?

 

What I want to achieve is to display friendly url and mark every page with schema.org so that I get indexed by Google along with correct Similar Pages.

 

<div itemscope itemtype="https://schema.org/WebPage">
<meta itemprop="url" content="http://www.winerepublic.ro/" />
<meta itemprop="url" content="{$base_uri}{$request_uri}" />
  <link itemprop="relatedLink" href="http://www.wine.com" />
  <link itemprop="relatedLink" href="http://www.wine-searcher.com/" />
</div>
 
Many thanks,
 
R
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...