дописать сами можете? готов все обсудить...в ЛС
и где же найти такого специалиста...?
а как он цены на сайте менять будет? такое разве возможно? ручками цены вроде меняют....
это не то....
все работает...
Все Большое Спасибо! с наступающим НГ! Отдельное Спасибо timo-71!
RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
три строки и вписал!
</Limit>
.....RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ /index.php/$1 [L]RewriteRule ^(.*)\.tpl$ [R=404]RewriteRule ^(.*)backups(.*)\.zip$ [R=404].....отрывок из кода---------- Добавлено 24.12.2018 в 16:20 ----------
AddDefaultCharset UTF-8 Options +FollowSymLinks Options -Indexes <ifModule mod_rewrite.c> RewriteEngine on #RewriteBase / #не знаю что там у вас RewriteRule ^(.*)\.tpl$ [R=404] RewriteRule ^(.*)backups(.*)\.zip$ [R=404] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_URI} !\.(css|js|jpg|png|gif)$ RewriteRule ^(.*)$ /index.php/$1 [L] </IfModule> <ifModule pagespeed_module> Modpagespeed off </ifModule> #apache2ctl -M && sudo a2enmod expires && sudo service apache2 restart (to enable mod_expires on ubuntu) <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access 7 days" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/x-icon "access 1 year" ExpiresByType application/x-shockwave-flash "access 1 year" ExpiresByType application/javascript "access 1 year" ExpiresByType application/x-javascript "access 1 year" ExpiresByType text/css "access 1 year" ExpiresByType text/html "access 1 year" </IfModule>
Поставил Ваш файл все заработало!
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
все поставил, но не открываются файлы xml---------- Добавлено 24.12.2018 в 15:44 ----------
RewriteCond $1 !^(index\.php|assets/.*|uploads/.*|application/third_party/(tinymce|filemanager|studio-42).*|favicon\.ico|favicon\.png|captcha/.*|application/.*/templates|application/.*/assets/js|application/.*/assets/css|application/.*/assets/images|CHANGELOG.xml|templates|js|application/modules/update/UpdateService.wsdl)
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_URI} !\.(css|js|jpg|png|gif)$ #чтобы не отправлять заведомо картинко/стили/джиэс на обработку RewriteRule ^(.*)$ /index.php/$1
Ваш код поставил. (заменил) Ваш код, ошибка 500....
.....Вставьте перед правилом, это над какой строкой?
AddDefaultCharset UTF-8
Options +FollowSymLinks
Options -Indexes
RewriteEngine on
# RewriteCond %{HTTP_HOST} ^www.site.com$ [NC]
# RewriteRule ^(.*)$ http://site.com/$1 [L,R=301]
<ifModule pagespeed_module>
Modpagespeed off
</ifModule>
#apache2ctl -M && sudo a2enmod expires && sudo service apache2 restart (to enable mod_expires on ubuntu)
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
ExpiresByType application/javascript "access 1 year"
ExpiresByType application/x-javascript "access 1 year"
ExpiresByType text/css "access 1 year"
ExpiresByType text/html "access 1 year"
</IfModule>
RewriteRule ^(.*)\.tpl$ [R=404]
RewriteRule ^(.*)backups(.*)\.zip$ [R=404]
####################################
# or
# RewriteRule ^(.+)$ index.php?$1 [L]
#RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
##USER IP BANNING
<Limit GET POST>
order allow,deny
deny from 64.186.93.35
allow from all
# RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
У меня есть такой скрипт: https://www.plati.market/itm/monitoring-parser-cen-jandeks-market-new-v3/1254165
Но он цены не меняет на вашем сайте, это уже можно отдельно реализовать.
дописать сами можете? готов все обсудить...в ЛС
Автоматом цены будут меняться, под каждый прайс пишется модуль, который будет менять цены
и где же найти такого специалиста...?
Заказать парсер у стороннего программиста :)
а как он цены на сайте менять будет? такое разве возможно? ручками цены вроде меняют....
Полно таких сервисов, например: https://market.parser.by/
это не то....
все работает...
Все Большое Спасибо! с наступающим НГ! Отдельное Спасибо timo-71!
Этого не может быть.
ЗЫ: Может, если не читать ответы.
Строчки
RewriteCond %{REQUEST_FILENAME} !-fнадо вписать вместоа не дополнительно.RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
три строки и вписал!
</Limit>
.....RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^(.*)\.tpl$ [R=404]
RewriteRule ^(.*)backups(.*)\.zip$ [R=404].....отрывок из кода
---------- Добавлено 24.12.2018 в 16:20 ----------
еще раз скопируйте сюда, что получилось.. Лучше используя BB CODE
А проще замените на такой..
Поставил Ваш файл все заработало!
Всё же написали Вам уже 2 раза. Перед строкойвставьте 2 строки
RewriteCond %{REQUEST_FILENAME} !-fУчимся читать ответы.RewriteCond %{REQUEST_FILENAME} !-d
все поставил, но не открываются файлы xml
---------- Добавлено 24.12.2018 в 15:44 ----------
Каких только вариантов не увидишь:)
Я бы поменял на
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !\.(css|js|jpg|png|gif)$ #чтобы не отправлять заведомо картинко/стили/джиэс на обработку RewriteRule ^(.*)$ /index.php/$1
Ваш код поставил. (заменил) Ваш код, ошибка 500....
Вставьте перед правилом ещё 2 условия
RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
Впрочем, timo-71 это уже написал.
.....Вставьте перед правилом, это над какой строкой?
AddDefaultCharset UTF-8
Options +FollowSymLinks
Options -Indexes
RewriteEngine on
# RewriteCond %{HTTP_HOST} ^www.site.com$ [NC]
# RewriteRule ^(.*)$ http://site.com/$1 [L,R=301]
<ifModule pagespeed_module>
Modpagespeed off
</ifModule>
#apache2ctl -M && sudo a2enmod expires && sudo service apache2 restart (to enable mod_expires on ubuntu)
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
ExpiresByType application/javascript "access 1 year"
ExpiresByType application/x-javascript "access 1 year"
ExpiresByType text/css "access 1 year"
ExpiresByType text/html "access 1 year"
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^(.*)\.tpl$ [R=404]
RewriteRule ^(.*)backups(.*)\.zip$ [R=404]
RewriteCond $1 !^(index\.php|assets/.*|uploads/.*|application/third_party/(tinymce|filemanager|studio-42).*|favicon\.ico|favicon\.png|captcha/.*|application/.*/templates|application/.*/assets/js|application/.*/assets/css|application/.*/assets/images|CHANGELOG.xml|templates|js|application/modules/update/UpdateService.wsdl)
RewriteRule ^(.*)$ /index.php/$1 [L]
####################################
# or
# RewriteRule ^(.+)$ index.php?$1 [L]
# or
#RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
Закомментировали?
Прямо перед этим есть что то похожее на
RewriteCond %{REQUEST_FILENAME} !-f
?RewriteCond %{REQUEST_FILENAME} !-d
Если нет, то добавьте эти строки выше RewriteRule ^(.*)$ /index.php/$1 и уберите решетку(#)
А лучше xтакцесс в студию
AddDefaultCharset UTF-8
Options +FollowSymLinks
Options -Indexes
RewriteEngine on
# RewriteCond %{HTTP_HOST} ^www.site.com$ [NC]
# RewriteRule ^(.*)$ http://site.com/$1 [L,R=301]
<ifModule pagespeed_module>
Modpagespeed off
</ifModule>
#apache2ctl -M && sudo a2enmod expires && sudo service apache2 restart (to enable mod_expires on ubuntu)
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
ExpiresByType application/javascript "access 1 year"
ExpiresByType application/x-javascript "access 1 year"
ExpiresByType text/css "access 1 year"
ExpiresByType text/html "access 1 year"
</IfModule>
##USER IP BANNING
<Limit GET POST>
order allow,deny
deny from 64.186.93.35
allow from all
</Limit>
RewriteRule ^(.*)\.tpl$ [R=404]
RewriteRule ^(.*)backups(.*)\.zip$ [R=404]
RewriteCond $1 !^(index\.php|assets/.*|uploads/.*|application/third_party/(tinymce|filemanager|studio-42).*|favicon\.ico|favicon\.png|captcha/.*|application/.*/templates|application/.*/assets/js|application/.*/assets/css|application/.*/assets/images|CHANGELOG.xml|templates|js|application/modules/update/UpdateService.wsdl)
RewriteRule ^(.*)$ /index.php/$1 [L]
####################################
# or
# RewriteRule ^(.+)$ index.php?$1 [L]
# or
# RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]