Делаем ЧПУ для Shop-Script Premium

Делать будем ссылки следующего вида:
- http://site.ru/product/product_id/ – http://site.ru/index.php?productID=product_id
- http://site.ru/category/category_id/ – http://site.ru/index.php?categoryID=category_id
- http://site.ru/price/ – http://site.ru/index.php?show_price=yes
- http://site.ru/user/ – http://site.ru/index.php?user_details=yes
- http://site.ru/register/ – http://site.ru/index.php?register=yes
- http://site.ru/logging/ – http://site.ru/index.php?logging=yes
- http://site.ru/logout/ – http://site.ru/index.php?logout=yes
- http://site.ru/shopping_cart/ – http://site.ru/index.php?shopping_cart=yes
- http://site.ru/page/page_id/ – http://site.ru/index.php?show_aux_page=page_id
Чтобы ссылки стали такого вида необходимо в .htaccess в корне сайта прописать следующее:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^product/([0-9]*) /index.php?productID=$1 [QSA,NE,L]
RewriteRule ^category/([0-9]*) /index.php?categoryID=$1 [QSA,NE,L]
RewriteRule ^price/ /index.php?show_price=yes [QSA,NE,L]
RewriteRule ^feedback/ /index.php?feedback=yes [QSA,NE,L]
RewriteRule ^user/ /index.php?user_details=yes [QSA,NE,L]
RewriteRule ^register/ /index.php?register=yes [QSA,NE,L]
RewriteRule ^logging/ /index.php?logging=yes [QSA,NE,L]
RewriteRule ^logout/ /index.php?logout=yes [QSA,NE,L]
RewriteRule ^shopping_cart/ /index.php?shopping_cart=yes [QSA,NE,L]
RewriteRule ^page/([0-9]*) /index.php?show_aux_page=$1 [QSA,NE,L]
</IfModule>
и в шаблонах соотвественно тоже нужно поменять ссылки
P.S. на сервере должен быть включен модуль php mod_rewrite
Tweet


Комментарии
[...] ЧПУ из этого [...]
а что и в каких шаблонах менять?
ссылки менять в нужных шаблонах
В каких шаблонах менять ссылки?!
@Доска объявлений:
во всех