[pmwiki-users] Robots, lofi, skin, SEO
Patrick R. Michaud
pmichaud at pobox.com
Sun Mar 19 09:52:16 CST 2006
On Sun, Mar 19, 2006 at 06:02:02AM -0800, Carlos AB wrote:
> Hi list,
>
> How can I make web robots index pages of my site, using a specifically
> designed skin for them. I saw this in some sites from Brazil, where
> webmasters have a "hifi" version of the site for users and a specially
> designed "lofi" (SE optmized, tableless design and so on) for the search
> engines.
In local/config.php:
include_once("$FarmD/scripts/robots.php");
if ($IsRobotAgent) $Skin = 'lofi';
See the scripts/robots.php file for a list of user agents that
PmWiki considers to be robots.
> This idea could be extended to skins for mobiles... maybe.
$MobilePattern = 'pattern to recognize mobile user agents';
if (preg_match("/$MobilePattern/", $_SERVER['HTTP_USER_AGENT']))
$Skin = 'mobile';
Pm
More information about the pmwiki-users
mailing list