11
bjuti
Re: Canonical URI´s over Xoops
  • 2009/7/19 9:35

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


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

12
DonCurioso
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...

Login

Who's Online

212 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits