[osCommerce] Rewrite rule for custom page not redirecting
Re: [osCommerce] Rewrite rule for custom page not redirectin
Re: [osCommerce] Rewrite rule for custom page not redirectin
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
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
Re: [osCommerce] Rewrite rule for custom page not redirectin
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
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
Re: [osCommerce] Rewrite rule for custom page not redirectin
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]