Различия
Показаны различия между двумя версиями страницы.
Следующая версия | Предыдущая версия Следующая версия Следующая версия справа и слева | ||
hosting:cms:prestashop:htaccess [2019/07/31 16:33] karlov создано |
hosting:cms:prestashop:htaccess [2020/06/03 17:08] zinenko |
||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | ====== Стандартные .htaccess для PrestaShop ====== | + | ====== |
- | Содержимое стандартных | + | {{tag> |
- | * Из [[hosting: | + | |
+ | Пример содержимого стандартных | ||
+ | * Из [[hosting: | ||
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again | # ~~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 | # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution | ||
Строка 15: | Строка 17: | ||
- | # | + | # |
RewriteRule . - [E=REWRITEBASE:/ | RewriteRule . - [E=REWRITEBASE:/ | ||
RewriteRule ^api(?:/ | RewriteRule ^api(?:/ | ||
# Images | # Images | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)? | RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)? | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)? | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^c/ | RewriteRule ^c/ | ||
- | RewriteCond %{HTTP_HOST} ^ps17.rndm.gq$ | + | RewriteCond %{HTTP_HOST} ^www.example.com$ |
RewriteRule ^c/ | RewriteRule ^c/ | ||
# AlphaImageLoader for IE and fancybox | # AlphaImageLoader for IE and fancybox | ||
Строка 67: | Строка 69: | ||
# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again | # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again | ||
</ | </ | ||
- | * Из подкаталога [[hosting: | + | * Из подкаталога [[hosting: |
# Use the front controller as index file. It serves as a fallback solution when | # Use the front controller as index file. It serves as a fallback solution when | ||
# every other rewrite/ | # every other rewrite/ | ||
Строка 84: | Строка 86: | ||
# to the front controller "/ | # to the front controller "/ | ||
< | < | ||
- | # | + | |
</ | </ | ||
Строка 146: | Строка 148: | ||
</ | </ | ||
</ | </ | ||
- | |||
- | Директива в строке 17 закомментирована для [[hosting: | ||
- | |||
- | ===== Другие статьи ===== | ||
- | |||
- | {{indexmenu> |