Hi,
Right now like this:
<link rel="canonical" href="http://<?php echo $_SERVER['HTTP_HOST']?><?php list($req, $params) = explode('?', $_SERVER['REQUEST_URI']); echo $req; ?>" />
Spammer Links
Re: Spammer Links
as you can see it's in your template
all you need to do is to change your code here
all you need to do is to change your code here
Don't forget to run script update
Re: Spammer Links
Is the code correct that I am using? What do I change the code to?
Re: Spammer Links
I've never seen this code before, i have no idea how it supposed to work
may be it's easier to ask the one who wrote it? )
may be it's easier to ask the one who wrote it? )
Don't forget to run script update
Re: Spammer Links
How do I do the canonical link correctly?
Re: Spammer Links
Now in canonical url for:
http://www.domain.com/index.php?page=post
It shows canonical url :
http://www.domain.com/index.php
How to make it show:
http://www.domain.com
Code I am using is:
<link rel="canonical" href="http://<?php echo $_SERVER['HTTP_HOST']?><?php list($req, $params) = explode('?', $_SERVER['REQUEST_URI']); echo $req; ?>" />
What would be correct code?
http://www.domain.com/index.php?page=post
It shows canonical url :
http://www.domain.com/index.php
How to make it show:
http://www.domain.com
Code I am using is:
<link rel="canonical" href="http://<?php echo $_SERVER['HTTP_HOST']?><?php list($req, $params) = explode('?', $_SERVER['REQUEST_URI']); echo $req; ?>" />
What would be correct code?
Re: Spammer Links
echo $req;
replace with
echo str_replace('index.php', '', $req);
replace with
echo str_replace('index.php', '', $req);
Don't forget to run script update