Page 2 of 3

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Thu Jun 10, 2010 1:18 am
by shotputty
I would purchase just about 10 more licenses for multiple OScommerce sites if this static page addition could get solved (multi language of course). Until that time I have partially SEO sites and partially just plain OScommerce. Any more tips would be greatly appreciated! :)

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Thu Jun 10, 2010 7:35 am
by inveo
Have you tried following code?

Code: Select all

#all_products.php - all products
RewriteRule ^all_products.php$ en/all-products? [L,R=301,QSA]
RewriteRule ^([a-z]{2})/all-products$ all_products.php?language=$1 [L,QSA]

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Fri Jun 11, 2010 1:20 am
by shotputty
yes, in this format:

Code: Select all

RewriteCond %{QUERY_STRING} ^language=([a-z]{2})$
RewriteRule ^all_products.php$ %1/all-products? [L,R=301]
RewriteRule ^([a-z]{2})/all-products$ all_products.php?language=$1 [L,QSA]


didn't work..

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Fri Jun 11, 2010 5:06 am
by inveo
So you didn't. Please copy and paste the code from my previous message.

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Fri Jun 11, 2010 9:20 am
by shotputty
Ok, now I put:

Code: Select all

#all_products.php - all products
RewriteRule ^all_products.php$ en/all-products? [L,R=301,QSA]
RewriteRule ^([a-z]{2})/all-products$ all_products.php?language=$1 [L,QSA]


at the bottom of .htaccess. (and change back to read only)

After that the page mydomain.com/all_products.php stays like that plus it says "page cannot be displayed" and it does not redirect to any mydomain.com/language/all-products :roll:

Maybe if you rename one file in your demo, http://www.magic-seo-url.com/demo/oscommerce/privacy2.php you will be able to see a solution ? (only the demo is not multi language unfortunately)

These rules are tougher than I thought :shock:

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Fri Jun 11, 2010 1:17 pm
by inveo
Then try:

Code: Select all

#all_products.php - all products
RewriteRule ^all_products.php$ en/all-products [L,R=301,QSA]
RewriteRule ^([a-z]{2})/all-products$ all_products.php?language=$1 [L,QSA]

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Fri Jun 11, 2010 4:03 pm
by shotputty
That gives me the same results :|

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Fri Jun 11, 2010 5:51 pm
by inveo
Are you really sure your changes stay there? Where exactly are you placing the code?

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Fri Jun 11, 2010 11:27 pm
by shotputty
I placed the code at the bottom of .htaccess all times. After the changes I make the file read only again. I know it has changed because after each failed attempt I go back to the file (first make it writeable to edit again) and undo the trial code because it makes that particular page not work.

Re: [osCommerce] Rewrite rule for custom page not redirectin

Posted: Sun Jun 13, 2010 3:56 pm
by inveo
I don't see any further problems with code. Please PM your FTP credentials. I will look what is going wrong.

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

Thank you for all the great support. I am truly impressed by your product, and by all the help you've given me to get it up and running!

Mark, the owner of Delica Canada

The support provided by the Inveostore.com team was top-notch! I had some questions regarding installation and they provided fast and friendly help. I’ll be recommending Magic SEO URLs to anyone who needs a quality URL re-write application from a great company.

Andrew, the owner of Right Channel Radios

More Testimonials »