Page 2 of 2

Re: Rewrite Rules for Zen Cart Mods

Posted: Tue Jul 01, 2008 7:01 pm
by BlessIsaacola
BTW, this code did not work to solve the problem described above:

Code: Select all

RewriteRule ^index.php?main_page=about_us$ about-us.html [R=301,L,QSA]

Re: Rewrite Rules for Zen Cart Mods

Posted: Mon Jul 14, 2008 10:33 am
by inveo
You are correct. I hope this will work fine:

Code: Select all

RewriteCond ${QUERY_STRING} ^main_page=about_us$
RewriteRule ^index.php$ about-us.html? [R=301,L]

Re: Rewrite Rules for Zen Cart Mods

Posted: Wed Jul 16, 2008 8:36 am
by BlessIsaacola
Unfortunately, it did not work. You can click on this link: http://www.clevershoppers.com/index.php ... e=about_us and it will still take you to the non-formatted page instead of rewriting.

Re: Rewrite Rules for Zen Cart Mods

Posted: Wed Jul 16, 2008 8:38 am
by inveo
Please make sure you put this code immediately after RewriteBase line.

Re: Rewrite Rules for Zen Cart Mods

Posted: Sun Jul 27, 2008 4:12 pm
by BlessIsaacola
Yes! That's exactly where it is located and it still doesn't work. Thanks!

Re: Rewrite Rules for Zen Cart Mods

Posted: Mon Aug 11, 2008 4:44 pm
by sarah2472
Actually... I'm editing this, because I stated it wrong in my last post, so I'm rephrasing it :)

I tried using:

RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3})&zenid=([a-z0-9]*)$ [OR]
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3})$ [OR]
RewriteCond %{QUERY_STRING} ^zenid=([a-z0-9]*)$ [OR]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^returns.html$ index.php?main_page=returns [L,QSA]


to rewrite the returns page. The rewrite works because you can access the page now from either URL. The problem is that it's not transforming the link in the information sidebox. It still links and goes to: https://www.ktpetsupply.com/index.php?main_page=returns

I would have thought it would automatically change like the others.

Re: Rewrite Rules for Zen Cart Mods

Posted: Sat Oct 18, 2008 10:18 am
by DoBBs
Hi,

I have installed Magic SEO and everything is working correctly. Since install I have added a Mod called Links Manager v3 (http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=297), which is not working, I believe because of URl rewriting. When I submit a link I get a 403 error (http://www.molliemoo.co.uk/index.php?main_page=links_submit&lPath=2).

I have read this forum and have used existing rules as a template, but have had no success. I have also tried using the About us example in this thread again without success.

Code: Select all

#links - links
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3})&zenid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3}) [OR]
RewriteCond %{QUERY_STRING} ^zenid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^
RewriteRule ^links.html$ index.php?main_page=links [L,QSA]
#links submit - links submit
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3})&zenid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3}) [OR]
RewriteCond %{QUERY_STRING} ^zenid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^
RewriteRule ^links_submit.html$ index.php?main_page=links_submit&lPath=2 [L,QSA]
#links submit 2 - links submit 2
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3})&zenid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3}) [OR]
RewriteCond %{QUERY_STRING} ^zenid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^
RewriteRule ^links_submit_success.html$ index.php?main_page=links_submit&action=send [L,QSA]


Is there something fundamental I am missing?

Any help is much appreciated.

Re: Rewrite Rules for Zen Cart Mods

Posted: Sat Oct 18, 2008 11:09 am
by inveo
You don't need to add any Rules in this case. Problem you are experiencing is not caused by MSU, but by MOD (you can prove it by disabling MSU, i.e.: rename .htaccess and comment out installation line).

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

Great work - great support - great tool! Thank you for your whole work and your great support. We're very glad with the plugin and our online portals now run much faster than before.

Alexander, the owner of Die Wirtschaft Köln

Magic SEO URLs seem to be having a really positive effect on our ranking and look so much cleaner in the browser than a random set of numbers. The sitemaps have also saved me a lot of time!

Simon, the owner of Beltingonline.com

More Testimonials »