xoops forums

bjuti

Just can't stay away
Posted on: 2009/7/19 9:35
bjuti
bjuti (Show more)
Just can't stay away
Posts: 871
Since: 2009/1/7 2
#11

Re: Canonical URI´s over Xoops

Hm.. i got "The page isn't redirecting properly" :)

DonCurioso

Quite a regular
Posted on: 2009/7/27 7:04
DonCurioso
DonCurioso (Show more)
Quite a regular
Posts: 239
Since: 2009/3/1 1
#12

Re: Canonical URI´s over Xoops - UPDATE

Hi,

i did found some issues, after test, please, use as is:

Create a .htaccess with:

RewriteEngine on
RewriteCond %{ HTTP_HOST }^hispaxoops.com [ NC ]
RewriteRule ^(.*)$ http://www.hispaxoops.com/$1 [L,R=301]



Change this domain for yours, save and upload to your XOOPS folder.

Edit header php, around line 120 and include these lines:


//www.celseven.com - Definir URL Canónica - XOOPS
echo "<link rel='canonical' href='".XOOPS_URL.$_SERVER['REQUEST_URI']."'/>" ;
//www.celseven.com - URL Canónica definida


Just before these two lines:

$xoopsLogger->stopTime( 'XOOPS output init' );
$xoopsLogger->startTime( 'Module display' );



Save&upload.
That´s all !!! Right now it´s working fine !!!

All info in Hispaxoops

Suggestions, comments... all welcome !!!
HispaXoops | Xoops España

That's the way i like it! | Nada mejor que una Alhambra bien helada con aceitunas...