Elxis CMS Forum

Support => Technical support => Topic started by: siwek on August 08, 2016, 19:40:21

Title: Elxis 2009.3 Facebook Comments
Post by: siwek on August 08, 2016, 19:40:21
Hi

I tried to implement of facebook comments to the code...
Everithink work good but I can't reach SEO URL - means my results is:

Quote
<meta property="og:url"           content="http://localhost/afrodyta/index.php?option=com_content&task=view&id=171&Itemid=52">
<meta property="og:type"          content="website">
<meta property="og:title"         content=" ">
<meta property="og:description"   content=" ">

SEO pro is ON...

I used http://localhost/afrodyta <?php echo $_SERVER['REQUEST_URI'] ?> to reach og:url

Any ideas to change it?



Title: Re: Elxis 2009.3 Facebook Comments
Post by: webgift on August 09, 2016, 15:08:26
Hi! Try this one:
$uri = ltrim(filter_input(INPUT_SERVER, 'REQUEST_URI', FILTER_SANITIZE_URL), '/');
$cur_seourl = $mainframe->getCfg('live_site').'/'.$uri;

- Also check if you have renamed the htaccess.txt file to .htaccess.
Title: Re: Elxis 2009.3 Facebook Comments
Post by: siwek on August 09, 2016, 15:53:05
Thank you  :)
this one works