
02-23-2009, 03:23 AM
|
|
New Member
|
|
Join Date: Feb 2009
Posts: 7
|
|
mod_rewrite
I have this script installed and require mod_rewrite through a .htaccess file.
Script: Prestashop.com
.htaccess file:
Quote:
# URL rewriting module activation
RewriteEngine on
# URL rewriting rules
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
# Catch 404 errors
ErrorDocument 404 /404.php
|
I have no problem running this under apache, so just wonder what do I need to tweak to correct that? Thanks.
BTW, I've got these errors on LT side:
Quote:
[[HTAccess]] rewrite: invalid env string, '=' expected while parsing: RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
[[HTAccess]] rewrite: invalid env string, '=' expected while parsing: RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
[[HTAccess]] rewrite: invalid env string, '=' expected while parsing: RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
|
|