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

XC SEO Lite v1.0.0 Released

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 09-21-2006, 04:38 AM
 
intel352 intel352 is offline
 

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

Default Re: XC SEO Lite v1.0.0 Released

I took the code home with me, made quite a few changes

* Found 1 more issue with Manufacturer htaccess rules, fixed that
* Added rewrite for catalog urls to the normal url structure
* Added TITLE tag insertion into href structures (for all rewritten urls)
* Added Static Page rewrite support

I'm going to debug jayk's issues, and then I'll issue a new release
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #22  
Old 09-21-2006, 05:28 AM
 
intel352 intel352 is offline
 

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

Default Re: XC SEO Lite v1.0.0 Released

Okay, I've uploaded a new release, v1.0.4

When using the provided .htaccess file, please be aware of the RewriteBase directive, and change as needed.
Additionally, the catalog/ directory has a .htaccess file for redirecting catalog-generated urls, edit this as well


Changelog:

Quote:
XC SEO Lite 1.0.4 (rev 15 - September 21, 2006)
====================================

* Bugfix: outputfilter.seo.php: Had used stripos instead of strpos (stripos is a PHP 5 function)

XC SEO Lite 1.0.3 (rev 14 - September 21, 2006)
====================================

* Bugfix - .htaccess: Added missing rules to htaccess file for Manufacturer sort ability
* Bugfix - seo.php: Removed unneeded require statement
* Added catalog/.htaccess file for rewriting catalog urls to the x-cart dynamic urls
* Moved some common code into a new function in the outputfilter
* Added auto-insertion of the TITLE tag into href structures
* Added rewrite support for Static Pages

XC SEO Lite 1.0.2 (rev 10 - September 20, 2006)
====================================

* Bugfix - seo.php: Moved $seo_qs inside IF statement so it is not processed needlessly (causes errors otherwise)
* Added Install docs for 4.1.3 - Modification instructions changed for Froogle in X-Cart 4.1.3
* Added support for IS_ROBOT define in X-Cart, so that Bots are unable to see/visit Printable or Sorted urls

XC SEO Lite 1.0.0 (rev 6 - September 20, 2006)
====================================

* Replaced original XC SEO code with geckoday's rewritten code (rewrite of outputfilter & htaccess, he had dropped all other code/files)
* Altered code to replace accented characters with non-accented equivalent
* Added support for rewriting 'printable=Y' urls
* Added support for rewriting 'sort' & 'sort_direction' urls
* Added seo.php to rewrite/redirect category/product/manufacturer urls to new HTML alias
* Added ability to inject user-specified keyword into urls
* Added IF condition that turns off the mod under HTTPS urls
* Added conditional support for SEO mod in Froogle module
* Added default robots.txt

UPDATED: regarding 1.0.4 release
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #23  
Old 09-21-2006, 06:05 AM
 
intel352 intel352 is offline
 

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

Default Re: XC SEO Lite v1.0.0 Released

I've updated the robots.txt file in SVN, the updated file will be in the next release.

Contents are below, I suggest everyone using XC SEO apply this changed robots.txt file:

Code:
User-agent: * Disallow: /cgi-bin/ Disallow: /search.php Disallow: /cart.php Disallow: /giftcert.php Disallow: /orders.php Disallow: /register.php Disallow: /icon.php Disallow: /image.php Disallow: /error_message.php Disallow: /offers.php Disallow: /product_image.php Disallow: /shop_closed.html
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #24  
Old 09-21-2006, 06:45 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: XC SEO Lite v1.0.0 Released

Quote:
Originally Posted by intel352
new release, v1.0.4

When using the provided .htaccess file, please be aware of the RewriteBase directive, and change as needed.


Thanks for the new release!
Where exactly in the .htaccess file should I change the above?
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #25  
Old 09-21-2006, 06:48 AM
 
intel352 intel352 is offline
 

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

Default Re: XC SEO Lite v1.0.0 Released

In each .htaccess file, there is a line that says:
RewriteBase /

Read the comments above this line, and edit as needed.
The best way to find out if you have configured your htaccess file correctly, is to test your site and make sure it functions properly

If you installed x-cart into your site root (/), then you shouldn't need to edit anything. If you installed into a subfolder (/shop), then rewritebase needs to be edited

EDIT: Again, if your site is working fine, you don't need to mess with the .htaccess file
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #26  
Old 09-21-2006, 07:06 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: XC SEO Lite v1.0.0 Released

I've changed RewriteBase / into the subfolder where I have x-cart installed.
But the site also functions properly if I leave the RewriteBase / as it was...
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #27  
Old 09-21-2006, 07:15 AM
 
intel352 intel352 is offline
 

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

Default Re: XC SEO Lite v1.0.0 Released

Quote:
Originally Posted by Jerrad
I've changed RewriteBase / into the subfolder where I have x-cart installed.
But the site also functions properly if I leave the RewriteBase / as it was...

Okay, as long as it works for you

Here are the docs on RewriteBase:
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteBase
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #28  
Old 09-21-2006, 09:14 AM
 
JeremyL JeremyL is offline
 

Member
  
Join Date: Sep 2006
Location: Dallas Texas
Posts: 17
 

Default Re: XC SEO Lite v1.0.0 Released

Quote:
Originally Posted by Jerrad
I've changed RewriteBase / into the subfolder where I have x-cart installed.
But the site also functions properly if I leave the RewriteBase / as it was...

I think the base is used to prevent conflicts of /shop/my-categotry.html (dynamic url) and /my-category.html (actual html in base dir) from happening.
Reply With Quote
  #29  
Old 09-21-2006, 09:26 AM
 
intel352 intel352 is offline
 

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

Default Re: XC SEO Lite v1.0.0 Released

I'll end up putting a nice informative comment such as the following in the .htaccess file. Should take care of any questions

Quote:
Originally Posted by VBSeo Forums
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vBulletin folder (i.e. RewriteBase /forums)
#RewriteBase /
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #30  
Old 09-21-2006, 12:53 PM
 
intel352 intel352 is offline
 

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

Default Re: XC SEO Lite v1.0.0 Released

XC SEO Lite v1.0.5 released

Quote:
CHANGELOG

XC SEO Lite 1.0.5 (rev 23 - September 21, 2006)
====================================

* Cleaned up disallowed urls in robots.txt
* Added support for product urls to include "cat" & "page", for products associated with multiple categories.
* Added redirect code for product + cat + page urls for bots.
* Added comments to RewriteBase directive
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 08:44 PM.

   

 
X-Cart forums © 2001-2020