Elxis CMS Forum
Support => Technical support => Topic started 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:
<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?
-
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.
-
Thank you :)
this one works