Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

[MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 05-04-2008, 02:51 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

XC SEO Pro - NOW AVAILABLE!!!

Despite propaganda being spread by competitors, XCSEO doesn't cloak!

PHP Site Solutions is proud to announce the release of XC SEO version 1.4.0.

This release supports Apache, Zeus, and ISAPI.

This release includes bug fixes, easier support for migrating from CDSEO, and once again X-Cart 4.0 is supported!

XC SEO is a completely free alternative to CDSEO and DSEFU, and licensed under the GNU GPL v3 license.
The purpose of XC SEO is to provide Search Engine Optimization url rewrites, to add better keyword usage to your urls, and make your urls more readable as well.

A Case Study/Testimonial has been posted regarding XC SEO, feel free to check it out here: http://www.phpsitesolutions.com/x-cart_search_engine_optimization_xcseo.htm (Click on Case Studies/Testimonials)

All code is versioned and available from our repository at:
http://code.google.com/p/x-cart-seo/ <--- DOWNLOAD XC SEO HERE

A zip of the release is available at the url provided above.
This release is for X-Cart 4.0 and 4.1

==============================
Several sites using XC SEO:==============================

If you're a user of XML Sitemaps Commercial version (http://www.xml-sitemaps.com), a good application that generates sitemap.xml files for your store, then this information is pertinent to you:

Quote:
Originally Posted by intel352
Regarding xml-sitemaps commercial application, I spoke with the author this week, it turns out you can change the UserAgent value via a manual config value specification.

Quote:
Originally Posted by Oleg Ignatiuk
you can customize user-agent identifier in config.inc.php file:
Code:
'xs_crawl_ident' => 'Googlebot',

This is specifically helpful for XC SEO users, as the sitemap is then seen as a legitimate bot, and the URLs are cleaned up accordingly.

--------------------------------------

Previous XC SEO thread:
http://forum.x-cart.com/showthread.php?t=37700

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

CHANGELOG
Code:
XC SEO 1.4.0 (rev 60 - May 4, 2008) ==================================== * Fix: Fixed issue with double-hyphens showing up in urls * Fix: Corrected problem with keyword injection causing redirect loop due to spaces * Fix: Corrected issue with configuration parameters not being interpreted correctly * Fix: Corrected bug with redirects from HTTPS incorrectly appending xid parameter as &xid (should be ?xid) * Fix: Ensured empty redirects cannot occur * Fix: Corrected outdated redirect method - X-Cart 4.1.7+ now passes it's own header for redirects * Fix: Moved usage of strtolower so content of "title" tag is not lowercase * Added easier support for CDSEO migration * Added Zeus-compatible rewrite rules * Miscellaneous: Performance might be slightly improved due to re-arranging of code * Miscellaneous: X-Cart 4.0.x is now supported by XC SEO once again * Miscellaneous: Altered seo pr notice to match </body> regardless of case

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Upgrading from v1.3.0 to v1.4.0 is documented in the download

Upgrade to XC SEO v1.3 from v1.2
  1. Upload modules/XC_SEO/ to replace existing modules/XC_SEO/ folder & files
  2. Edit .htaccess, find:
    Code:
    # Rewrite SEO product URL's RewriteRule ^([^/]*/)?[^/]+-print-c-([0-9]+)-p-([0-9]+)-pr-([0-9]+)\.html$ $1product.php?printable=Y&productid=$4&cat=$2&page=$3 [QSA,L] RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-p-([0-9]+)-pr-([0-9]+)\.html$ $1product.php?productid=$4&cat=$2&page=$3 [QSA,L]

    After, add:
    Code:
    RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-pr-([0-9]+)\.html$ $1product.php?productid=$3&cat=$2 [QSA,L]
  3. And that's it, no other changes required!
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #2  
Old 05-04-2008, 08:24 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

It's come to my attention that there is 1 simple fix that is missing for ISAPI users
This fix is ONLY needed for ISAPI users, as it will break XC SEO on other software.

I'm working on an update to XC SEO to rectify this problem

Open modules/XC_SEO/seo.php

Find all occurrences of:
PHP Code:
$_SERVER['REQUEST_URI'

Replace with:
PHP Code:
$_SERVER['HTTP_X_REWRITE_URL'
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #3  
Old 05-05-2008, 07:44 AM
 
justy justy is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 39
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

I've been having trouble with how XC SEO rewrites the URLs for the sort by buttons on category pages.

On phpsitesolutions demo page for XC SEO, the sort by Product name and sort by product price links work correctly, being rewritten to look like this:

Code:
http://demo.phpsitesolutions.com/cd-dvd-video-title-up-c-103.html

On my site, the url looks like this:

Code:
http://demo.phpsitesolutions.com/dvds-c-303sort=title.html

So the sort= variable isn't getting rewritten correctly. I uploaded the XC SEO update this morning, but saw no change.
__________________
---
x-cart 4.1.9
XC SEO 1.4

x-cart 4.2
Reply With Quote
  #4  
Old 05-05-2008, 09:26 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

Hi Justy, contact me via email (in my sig), i'll help you troubleshoot this issue

EDIT: I helped Justin troubleshoot the issue, turned out his navigation script was missing an & before the sort parameter (creating a broken url)

Cheers
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #5  
Old 05-05-2008, 11:54 AM
 
justy justy is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 39
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

And thanks a lot for pointing me in the right direction.
__________________
---
x-cart 4.1.9
XC SEO 1.4

x-cart 4.2
Reply With Quote
  #6  
Old 05-08-2008, 01:29 PM
  kpriest's Avatar 
kpriest kpriest is offline
 

eXpert
  
Join Date: Apr 2003
Location: Seattle, WA
Posts: 263
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

Jon - quick question - How exactly does the "Prevent Robots from accessing duplicate content pages:" option work?

Great mod, btw!
__________________
-Ken
X-Cart User / Developer Since April 2003
(Varying versions, multiple client sites, 3.x through 4.4.x)
www.pointbweb.com
Reply With Quote
  #7  
Old 05-08-2008, 01:44 PM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

Thanks Ken

I'm sure you've noticed that as a regular visitor to a website using XC SEO, that the url for a product often looks similar to this: whatever-c-4-p-1-pr-6.html
A url like that is passing the category id, the category page, and the product id. All X-Cart needs to function, is the product id, but the other values are passed as they determine how the breadcrumb will appear at the top of the page.

So XC SEO allows these extra parameters in the url, as it's normal X-Cart functionality. The problem, though, is that to a bot, that page would look like a duplicate content page, same goes for pages that have the -print- parameter (printable pages), and there are other examples I can't think of at the moment.

The "prevent bots" config item ensures that if a bot is detected, it will not see any urls with certain unneeded variables, such as -print-, ?js=n, the -c-5-p-1 bit in a product url, etc etc. Instead, it shows bots only urls that don't have those extra parameters. Additionally, if a bot tries to visit a url that a bot isn't allowed to see, they get 301 redirected to the "clean" url.

If you have other questions, let me know!

Cheers
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #8  
Old 05-14-2008, 03:30 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

XCSEO Pro has been released - XC SEO Pro - NOW AVAILABLE!!!
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #9  
Old 05-15-2008, 10:59 AM
 
jagorny jagorny is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 98
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

Having an odd time running this... installed without a hitch, but URLs are not being rewritten on the page. Configuration looks correct - this is not an upgrade from a prior version. Has it been tested on 4.1.10?

Thanks,
__________________
Jacob Gorny
E-commerce Lead, Applications Developer
Greek Orthodox Archdiocese

Running X-Cart Pro 4.1.10
RHEL5 | Apache 2.2.8 | PHP 5.2.6
Reply With Quote
  #10  
Old 05-15-2008, 11:13 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

Hi Jacob, contact me via email (in my sig), I'll help you get it running
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:54 AM.

   

 
X-Cart forums © 2001-2020