beekhouse
Members-
Posts
21 -
Joined
-
Last visited
beekhouse's Achievements
Newbie (1/14)
1
Reputation
-
Hallo, Voor mooie url's op mijn webshop heb ik alweer een aantal jaren geleden gebruik gemaakt van htaccess. De urls zijn echter altijd zonder trailing slash geweest bijv: domein.nl/categorie ipv domein.nl/categorie/ Nu zou ik dit willen laten doorverwijzen naar de laatste variant dus met / op het eind. Nu heeft er al iemand naar gekeken en wordt er automatisch doorverwezen naar de url met / op het eind alleen raakt het in een loop en gaat het fout. Onderstaand de htaccess zonder / en als 2de de htaccess met / <IfModule mod_rewrite.c> # URL rewriting module activation RewriteEngine on #Force www: RewriteCond %{HTTP_HOST} ^domain.com [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301,NC] # URL rewriting rules RewriteRule ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg [L] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$1&noredirect=1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$3&isolang=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*) /category.php?id_category=$2&isolang=$1 [QSA,L] RewriteRule ^page-not-found$ /404.php [QSA,L] RewriteRule ^address$ /address.php [QSA,L] RewriteRule ^addresses$ /addresses.php [QSA,L] RewriteRule ^authentication$ /authentication.php [QSA,L] RewriteRule ^best-sales$ /best-sales.php [QSA,L] RewriteRule ^cart$ /cart.php [QSA,L] RewriteRule ^contact-us$ /contact-form.php [QSA,L] RewriteRule ^discount$ /discount.php [QSA,L] RewriteRule ^guest-tracking$ /guest-tracking.php [QSA,L] RewriteRule ^order-history$ /history.php [QSA,L] RewriteRule ^identity$ /identity.php [QSA,L] RewriteRule ^manufacturers$ /manufacturer.php [QSA,L] RewriteRule ^my-account$ /my-account.php [QSA,L] RewriteRule ^new-products$ /new-products.php [QSA,L] RewriteRule ^order$ /order.php [QSA,L] RewriteRule ^order-follow$ /order-follow.php [QSA,L] RewriteRule ^quick-order$ /order-opc.php [QSA,L] RewriteRule ^order-slip$ /order-slip.php [QSA,L] RewriteRule ^password-recovery$ /password.php [QSA,L] RewriteRule ^prices-drop$ /prices-drop.php [QSA,L] RewriteRule ^search$ /search.php [QSA,L] RewriteRule ^sitemap$ /sitemap.php [QSA,L] RewriteRule ^stores$ /stores.php [QSA,L] RewriteRule ^supplier$ /supplier.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-zA-Z0-9-]*)\.html /product.php?product_name_seo=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^[a-zA-Z0-9-]*/([a-zA-Z0-9-]*)\.html /product.php?product_name_seo=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^suplr/([a-zA-Z0-9-]*) /supplier.php?supplier_name=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^mfg/([a-zA-Z0-9-]*) /manufacturer.php?manufacturer_name=$1 [QSA,L] RewriteRule ^content/category/([a-zA-Z0-9-]*) /cms.php?cms_category_name=$1 [QSA,L] RewriteRule ^content/([a-zA-Z0-9-]*) /cms.php?cms_name=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-zA-Z0-9-]*)(/[a-zA-Z0-9-]*)?/. /category.php?category_name_seo=$1&noredirect=1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-zA-Z0-9-]*) /category.php?category_name=$1 [QSA,L] </IfModule> # Catch 404 errors ErrorDocument 404 /404.php <IfModule mod_expires.c> 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" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> En de htaccess aangepast om te eindigen met / <IfModule mod_rewrite.c> # URL rewriting module activation RewriteEngine on RewriteBase / #Force www: RewriteCond %{HTTP_HOST} ^domain.com [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301,NC] #Force trailing slash RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteCond %{REQUEST_URI} !\.[^/]*$ RewriteRule ^(.*)$ /$1/ [L,R=301] # URL rewriting rules RewriteRule ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg [L] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+/ /category.php?id_category=$1&noredirect=1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*/ /category.php?id_category=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)/ /supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)/ /manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)/ /cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*)/ /cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$3&isolang=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)/ /category.php?id_category=$2&isolang=$1 [QSA,L] RewriteRule ^page-not-found/$ /404.php [QSA,L] RewriteRule ^address/$ /address.php [QSA,L] RewriteRule ^addresses/$ /addresses.php [QSA,L] RewriteRule ^authentication/$ /authentication.php [QSA,L] RewriteRule ^best-sales/$ /best-sales.php [QSA,L] RewriteRule ^cart/$ /cart.php [QSA,L] RewriteRule ^contact-us/$ /contact-form.php [QSA,L] RewriteRule ^discount/$ /discount.php [QSA,L] RewriteRule ^guest-tracking/$ /guest-tracking.php [QSA,L] RewriteRule ^order-history/$ /history.php [QSA,L] RewriteRule ^identity/$ /identity.php [QSA,L] RewriteRule ^manufacturers/$ /manufacturer.php [QSA,L] RewriteRule ^my-account/$ /my-account.php [QSA,L] RewriteRule ^new-products/$ /new-products.php [QSA,L] RewriteRule ^order/$ /order.php [QSA,L] RewriteRule ^order-follow/$ /order-follow.php [QSA,L] RewriteRule ^quick-order/$ /order-opc.php [QSA,L] RewriteRule ^order-slip/$ /order-slip.php [QSA,L] RewriteRule ^password-recovery/$ /password.php [QSA,L] RewriteRule ^prices-drop/$ /prices-drop.php [QSA,L] RewriteRule ^search/$ /search.php [QSA,L] RewriteRule ^sitemap/$ /sitemap.php [QSA,L] RewriteRule ^stores/$ /stores.php [QSA,L] RewriteRule ^supplier/$ /supplier.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-zA-Z0-9-]*)\.html /product.php?product_name_seo=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^[a-zA-Z0-9-]*/([a-zA-Z0-9-]*)\.html /product.php?product_name_seo=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^suplr/([a-zA-Z0-9-]*)/ /supplier.php?supplier_name=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^mfg/([a-zA-Z0-9-]*)/ /manufacturer.php?manufacturer_name=$1 [QSA,L] RewriteRule ^content/category/([a-zA-Z0-9-]*) /cms.php?cms_category_name=$1 [QSA,L] RewriteRule ^content/([a-zA-Z0-9-]*) /cms.php?cms_name=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-zA-Z0-9-]*)(/[a-zA-Z0-9-]*)?/./ /category.php?category_name_seo=$1&noredirect=1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-zA-Z0-9-]*)/ /category.php?category_name=$1 [QSA,L] </IfModule> # Catch 404 errors ErrorDocument 404 /404.php <IfModule mod_expires.c> 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" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> Deze laatste resulteert dus in een loop. Is er iemand die mij kan helpen? Alvast bedankt!
-
- htaccess
- trailing slash
-
(and 1 more)
Tagged with:
-
Hallo, Ik heb de paypal module geinstalleerd alleen ontvang ik geen bevestiging van de bestelling via email. De order wordt netjes aangemaakt en de betaling is ook gewoon voldoen alleen ontvang ik geen email dat er daadwerkelijk een bestelling is geplaatst iemand ervaring hiermee? ik draai trouwens Prestashop Version: 1.4.1.0 Het lijkt er ook op dat er geen database gegevens worden aangevuld van de bestelling terwijl deze wel in de backend staat.
-
[Solved] Robots generating Carts
beekhouse replied to Indigo47's topic in Configuring and using PrestaShop
What am I doing the wrong way? -
[Solved] Robots generating Carts
beekhouse replied to Indigo47's topic in Configuring and using PrestaShop
Ok but the shop is custom so can't just get the latest version. Will compare current cartcontroller with new one, thnx. -
[Solved] Robots generating Carts
beekhouse replied to Indigo47's topic in Configuring and using PrestaShop
I know this is fixed in svn but I have the same problem in 1.4.1 and I have no idea where to apply the above fix. Is there anyone who can help? -
New order mail with the invoice attached?
beekhouse replied to beekhouse's topic in Configuring and using PrestaShop
Is there no one who knows how to make this work? -
How to edit PDF invoice content in PrestaShop 1.3.1
beekhouse replied to istox's topic in Core developers
Hello, I wondered which code to remove to display only: total products (tax excl.) total products (tax incl.) total shipping total (tax incl.) So I want to get rid of the total of products and shipping tax excl.