Search found 46 matches

by shotputty
Sat May 15, 2010 1:52 am
Forum: Feature Requests
Topic: [osCommerce] leading / instead of - before products_id
Replies: 1
Views: 3272

[osCommerce] leading / instead of - before products_id

One of our products has the name Omega-3. It's products_id happens to be 9. With the SEO url it now says omega-3-9. Unfortunately Omega 9 is also a known product, so this way of writing it will be a little confusing. I've read that the products_id will be in the url until a new version might remove ...
by shotputty
Fri May 14, 2010 12:17 am
Forum: Custom Rewrite Rules
Topic: [osCommerce] Rewrite rule for custom page not redirecting
Replies: 26
Views: 19426

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

I can't get it to work in all different orders.. I tried: RewriteCond %{QUERY_STRING} ^language=([a-z]{2})$ RewriteRule ^([a-z]{2})/all-products$ all_products.php?language=$1 [L,QSA] RewriteRule ^all_products.php$ %1/all-products? [L,R=301] and RewriteRule ^([a-z]{2})/all-products$ all_products.php?...
by shotputty
Thu May 13, 2010 1:35 pm
Forum: Custom Rewrite Rules
Topic: [osCommerce] Rewrite rule for custom page not redirecting
Replies: 26
Views: 19426

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

OK I have these lines of code in .htaccess now, in this order: #all_products.php - all products RewriteRule ^([a-z]{2})/all-products$ all_products.php?language=$1 [L,QSA] RewriteCond %{QUERY_STRING} ^language=([a-z]{2})$ RewriteRule ^all_products.php$ ^%1/all-products$ [L,R=301] When I access the pa...
by shotputty
Thu May 13, 2010 11:11 am
Forum: Custom Rewrite Rules
Topic: [osCommerce] Rewrite rule for custom page not redirecting
Replies: 26
Views: 19426

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

I thought of this (but it doesn't work)

Code: Select all

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


It's like abracadabra to me :roll:
by shotputty
Wed May 12, 2010 11:56 pm
Forum: Custom Rewrite Rules
Topic: [osCommerce] Rewrite rule for custom page not redirecting
Replies: 26
Views: 19426

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

How would such a rule look like? As the site is muti language it needs to be variable.
by shotputty
Wed May 12, 2010 5:04 am
Forum: Custom Rewrite Rules
Topic: [osCommerce] Rewrite rule for custom page not redirecting
Replies: 26
Views: 19426

[osCommerce] Rewrite rule for custom page not redirecting

This is a working (but also known) page in OScommerce that works perfectly by this rule in .htaccess: #contact_us.php - contact us RewriteRule ^([a-z]{2})/contact-us$ contact_us.php?language=$1 [L,QSA] --> mydomain.com/nl/contact-us -> perfect! I've added the same rule for a custom page: #all_produc...