Page 1 of 1

[Zen Cart] .htaccess Optimization

Posted: Mon Feb 18, 2008 3:39 pm
by BlessIsaacola
It would be nice to see some code optimization for the .htaccess file in the future. Currently with just one language (no multi-languague support), the file is more than 100kb. Considering that the .htaccess is referenced frequently, an optimization will help with performance.

Re: .htaccess Optimization

Posted: Mon Feb 18, 2008 3:51 pm
by inveo
You can now already do some optimizations which may heavily decrease number of RewriteRules.
  • Remove all unused Product Types in Zen Cart administration (Zen Cart administration - Catalog - Product Types)
  • lower category depth as possible in msu_tweak.pohp
Both actions require re-generating .htaccess file.

With Magic SEO URL Core 1.x series, no other optimizations are expected (it is caused by used technique). Another story is Magic SEO URL Core 2 which is under development and is using only three Rewrite Rules :) (but there is lot of work to keep all known Features and we also want to introduce number-less URI with this new Core).

Re: .htaccess Optimization

Posted: Tue Feb 19, 2008 9:14 am
by BlessIsaacola
It's really not a big deal just a suggestion. Even doing what you suggested only drop the file from 100+kb to 70+kb which is more than 30% reduction but still a big file none the less.

Re: [Zen Cart] .htaccess Optimization

Posted: Mon Nov 17, 2008 11:11 am
by Spike00
Hi Jiry, could you please explain what you mean by 'remove unused product types'?

Simply removing unwanted records from the table 'product_types'? only this?

Thanks

Re: [Zen Cart] .htaccess Optimization

Posted: Mon Nov 17, 2008 11:13 am
by inveo
Zen Cart administration - Catalog - Product Types

Re: [Zen Cart] .htaccess Optimization

Posted: Mon Nov 17, 2008 11:29 am
by Spike00
Hmmm from there we can only edit or edit layout, not remove. I don't understand, sorry.

Re: [Zen Cart] .htaccess Optimization

Posted: Mon Nov 17, 2008 11:42 am
by inveo
If you don't see delete button, open admin/product_types.php and change:

Code: Select all

//        $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_PRODUCT_TYPES, 'page=' . $_GET['page'] . '&ptID=' . $ptInfo->type_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_PRODUCT_TYPES, 'page=' . $_GET['page'] . '&ptID=' . $ptInfo->type_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . zen_href_link(FILENAME_PRODUCT_TYPES, 'page=' . $_GET['page'] . '&ptID=' . $ptInfo->type_id . '&action=layout') . '">' . zen_image_button('button_layout.gif', IMAGE_LAYOUT) . '</a>' );


to:

Code: Select all

        $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_PRODUCT_TYPES, 'page=' . $_GET['page'] . '&ptID=' . $ptInfo->type_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_PRODUCT_TYPES, 'page=' . $_GET['page'] . '&ptID=' . $ptInfo->type_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . zen_href_link(FILENAME_PRODUCT_TYPES, 'page=' . $_GET['page'] . '&ptID=' . $ptInfo->type_id . '&action=layout') . '">' . zen_image_button('button_layout.gif', IMAGE_LAYOUT) . '</a>' );

Cart  
(empty)

Cart Check out  »

Prices are tax inclusive.

The VAT rate for your country (US) * is 0,0 % because it is not a member of the European Union (EU).

* Please create an account if your country does not match.

Community feed
  • [phpBB3] AJAX Userinfo Extension
    Hi! I'm having trouble with this extension: https://www.phpbb.com/customise/db/exte ... _userinfo/ I tried asking support from the author but for no avail, since now. My request for support...
    by Lord Phobos
  • [phpBB3] Upgrade to phpBB 3.2.3
    Hello.. after Upgrade to phpBB 3.2.3 I am getting this message.. How can I solve this issue..? Thank you
    by ingbrzy
  • [phpBB3] URL path changed
    Hello.. I have changed my site path after moving to new hosting and now can not activate SEO module.. new path http://www.miuios.cz/domains/miuios.cz/ could you help me? thank you
    by ingbrzy2
  • [phpBB3] Chinese language support
    Hi, i bought magic seo for phpbb because it says that it supports a wide range of alphabets and UTF-8, however i found that it doesn't. I'm preparing a website in Chinese and all forums having a...
    by iwsmike
  • [WP2PS] Yoast SEO plugin
    Thanks for your support installing the PS-WP integration. However there is some errors when PS-WP integration is activated. 1. Error generating sitemap with Yoas SEO plugin (it disappears when...
    by argidomin
Join our support forum » Pre-Sales Questions »
Featured Testimonials

We are glad with our business relationship with the folks at Inveostore.com. They are very knowledgeable and speed of support is second to none. They have also gone the extra mile to assist us in writing codes to make other urls to have the nicely formed urls. Kudos to all the team at Inveo and keep up the good work. Looking forward...

Issac, the owner of Clevershoppers.com

Search friendly URL's are very important for marketing any site, let alone an e-commerce site like CRE Loaded. A client site built on CRE Loaded needed a plug-in to fix the PHP based URL's. Magic SEO URLs are running flawlessly and doing exactly what it is supposed to: providing those search friendly URL's. I had them install it as well...

Chad, the owner of Website Marketing & Website Development

More Testimonials »