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
  • [Zen Cart] Can't execute Magic SEO URLs sitemaps
    I installed Magic SEO URLs Sitemaps Add-On for ZenCart MSU4.x/MSU5.x 2.0 on my server, when I try to generate sitemaps using: https://www.pechesudv155.owally.com/sitemaps.php I received :...
    by peter@pechesud.com
  • [phpBB3] Sharing users between phpBB / PrestaShop
    Hi i have 2 question 1- prestashop module support phpBB 3.3 ? 2- why we can not login in prestashop and phpbb with same user?
    by zohall
  • [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
Join our support forum » Pre-Sales Questions »
Featured Testimonials

Magic SEO URLs for PrestaShop is amazing product, it help me a lot with SEO, and the customer service is very nice and patient! I will built a new website, and I will buy this module again.

Joseph, the owner of Focus Vows

AWESOME! Worked like a charm. I now understand why you used the word Magic in its name. Quick, easy, painless, gets the job done, and beautiful. Thanks a Million for creating this fantastic tool and for the quick excellent support.

Mohammad, the owner of TradersCity

More Testimonials »