EQ10000 Posted April 23, 2011 Share Posted April 23, 2011 In 1.4.1.0All url will append en/ or fr/ or it/, but all pages would be Object not found!.php-5.2, Apache, Quote # URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^api/?(.*)$ /www/ps141sam/webservice/dispatcher.php?url=$1 [QSA,L]RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /www/ps141sam/img/p/$1-$2$3.jpg [L]RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /www/ps141sam/img/p/$1-$2.jpg [L]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /www/ps141sam/img/c/$1$2.jpg [L]RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /www/ps141sam/product.php?id_product=$1 [QSA,L]RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /www/ps141sam/category.php?id_category=$1 [QSA,L]RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /www/ps141sam/product.php?id_product=$1 [QSA,L]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /www/ps141sam/supplier.php?id_supplier=$1 [QSA,L]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /www/ps141sam/manufacturer.php?id_manufacturer=$1 [QSA,L]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /www/ps141sam/cms.php?id_cms=$1 [QSA,L]RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /www/ps141sam/cms.php?id_cms_category=$1 [QSA,L]RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /www/ps141sam/product.php?id_product=$2&isolang;=$1 [QSA,L]RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /www/ps141sam/product.php?id_product=$2&isolang;=$1 [QSA,L]RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /www/ps141sam/category.php?id_category=$2&isolang;=$1 [QSA,L]RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /www/ps141sam/cms.php?isolang=$1&id;_cms=$2 [QSA,L]RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /www/ps141sam/cms.php?isolang=$1&id;_cms_category=$2 [QSA,L]RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /www/ps141sam/supplier.php?isolang=$1&id;_supplier=$2 [QSA,L]RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /www/ps141sam/manufacturer.php?isolang=$1&id;_manufacturer=$2 [QSA,L]RewriteRule ^en/page-not-found$ /www/ps141sam/404.php?isolang=en [QSA,L]RewriteRule ^en/address$ /www/ps141sam/address.php?isolang=en [QSA,L]RewriteRule ^en/addresses$ /www/ps141sam/addresses.php?isolang=en [QSA,L]RewriteRule ^en/authentication$ /www/ps141sam/authentication.php?isolang=en [QSA,L]RewriteRule ^en/best-sales$ /www/ps141sam/best-sales.php?isolang=en [QSA,L]RewriteRule ^en/cart$ /www/ps141sam/cart.php?isolang=en [QSA,L]RewriteRule ^en/contact-us$ /www/ps141sam/contact-form.php?isolang=en [QSA,L]RewriteRule ^en/discount$ /www/ps141sam/discount.php?isolang=en [QSA,L]RewriteRule ^en/guest-tracking$ /www/ps141sam/guest-tracking.php?isolang=en [QSA,L]RewriteRule ^en/order-history$ /www/ps141sam/history.php?isolang=en [QSA,L]RewriteRule ^en/identity$ /www/ps141sam/identity.php?isolang=en [QSA,L]RewriteRule ^en/manufacturers$ /www/ps141sam/manufacturer.php?isolang=en [QSA,L]RewriteRule ^en/my-account$ /www/ps141sam/my-account.php?isolang=en [QSA,L]RewriteRule ^en/new-products$ /www/ps141sam/new-products.php?isolang=en [QSA,L]RewriteRule ^en/order$ /www/ps141sam/order.php?isolang=en [QSA,L]RewriteRule ^en/order-follow$ /www/ps141sam/order-follow.php?isolang=en [QSA,L]RewriteRule ^en/quick-order$ /www/ps141sam/order-opc.php?isolang=en [QSA,L]RewriteRule ^en/order-slip$ /www/ps141sam/order-slip.php?isolang=en [QSA,L]RewriteRule ^en/password-recovery$ /www/ps141sam/password.php?isolang=en [QSA,L]RewriteRule ^en/prices-drop$ /www/ps141sam/prices-drop.php?isolang=en [QSA,L]RewriteRule ^en/search$ /www/ps141sam/search.php?isolang=en [QSA,L]RewriteRule ^en/sitemap$ /www/ps141sam/sitemap.php?isolang=en [QSA,L]RewriteRule ^en/stores$ /www/ps141sam/stores.php?isolang=en [QSA,L]RewriteRule ^en/supplier$ /www/ps141sam/supplier.php?isolang=en [QSA,L]RewriteRule ^en/([^?&]*) /www/ps141sam/$1?isolang=en [QSA,L]# Catch 404 errorsErrorDocument 404 /www/ps141sam/404.php ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year"FileETag INode MTime Size AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript Link to comment Share on other sites More sharing options...
EQ10000 Posted April 25, 2011 Author Share Posted April 25, 2011 Default :*AllowOverride None*Solution :Specify in httpd.conf*AllowOverride FileInfo Indexes* Link to comment Share on other sites More sharing options...
madmike Posted May 6, 2011 Share Posted May 6, 2011 Quote Default :Solution :Specify in httpd.conf*AllowOverride FileInfo Indexes* Thanks it remove erro ! But now I have a page not found. Is teh 1.4.1 have a .htacess rules bug ?Thanks,Mike Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now