BigL Posted October 26, 2012 Share Posted October 26, 2012 Hi guys I am on ('_PS_VERSION_', '1.5.0.17') I have a small problem with my .htaccess adding my own rule. I am not sure where to post, please if you have authority move my post to the right forum. I have this in my .htaccess but I keep getting file not found or page not found error. And the params in the url get chucked out by the server which makes it impossible for prestashop to access the id. I have disabled prestashop rules so that this post looks cleaner/shorter. <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^webhost.localhost$ [NC] RewriteRule ^id/([0-9]+) /index\.php?id=$1 [L] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^api/?(.*)$ webservice/dispatcher.php?url=$1 [QSA,L] </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Thanks Link to comment Share on other sites More sharing options...
Recommended Posts