Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

bowandtie

Новачок
  
  • Публікації

    43
  • З нами

  • Відвідування

Усі публікації користувача bowandtie

  1. Добрый день, друзья! Появилась необходимость развернуть магазин на базе существующего домена блога wordpress. Хостинг: hts.ru Скачал OcStore 1.5.5.1.2 с главной, закинул на хостинг в папку /shop и установил сборку. Установка прошла без проблем, магазин открывается по адресу www.сайт.ru/shop почитал мануал и форум, сделал соответствующие настройки в файлах: www.сайт.ru/shop/config.php, www.сайт.ru/shop/admin/config.php и www.сайт.ru/shop/.htaccess В корневой директории, там где лежит wordpress, отредактировал файл .htaccess и добавил строку: RewriteCond %{REQUEST_URI} !^/shop ПРОБЛЕМА: При попытке зайти под админом сайт долго виснет на 4-5 минут, потом либо выдает ошибку: "Запрошенный URL не может быть доставлен", либо успешно входит в панель управления OcStore. Если попытаться сохранить любые настройки в админке, сайт умирает на 4-5 минуты. В момент входа, основной сайт и магазин недоступны. Отлипает через те же 4-5 минут. Написал хостеру, тот пока хранит молчание. Прошу вашей помощи, так как уже сутки найти решение не могу. Содержание файла www.сайт.ru/shop/config.php : Содержание файла www.сайт.ru/shop/admin/config.php : Содержание файла www.сайт.ru/shop/.htaccess : # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "\.(tpl|ini|log)"> Order deny,allow Deny from all </FilesMatch> # SEO URL Settings RewriteEngine On # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase /shop/ RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^download/(.*) /index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: # php_flag register_globals off # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200 # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none Содержание файла www.сайт.ru/.htaccess (файл от wordpress): #Кэширование в браузере пользователей для увеличения скорости сайта <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access 7 days" ExpiresByType application/javascript "access plus 1 year" ExpiresByType text/javascript "access plus 1 year" ExpiresByType text/css "access plus 1 year" ExpiresByType text/html "access plus 7 day" ExpiresByType text/x-javascript "access 1 year" 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" </IfModule> #Кэширование в браузере пользователей для увеличения скорости сайта FileETag MTime Size <ifmodule mod_expires.c> <filesmatch ".(jpg|jpeg|gif|png|ico|css|js)$"> ExpiresActive on ExpiresDefault "access plus 1 year" </filesmatch> </ifmodule> #Не допускает к файлу wp-login.php #<Files wp-login.php> #Order Deny,Allow #Deny from all #</Files> #Кэширование в браузере пользователей для увеличения скорости сайта <IfModule mod_setenvif.c> BrowserMatch "MSIE" force-no-vary BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary </IfModule> deny from 5.166.1.1/32 deny from 5.166.1.2/31 deny from 5.166.1.4/30 deny from 5.166.1.8/29 deny from 5.166.1.16/28 deny from 5.166.1.32/27 deny from 5.166.1.64/26 deny from 5.166.1.128/25 deny from 5.166.2.0/23 deny from 5.166.4.0/22 deny from 5.166.8.0/21 deny from 5.166.16.0/20 deny from 5.166.32.0/19 deny from 5.166.64.0/18 deny from 5.166.128.0/17 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_URI} !^/shop RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.