Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

zyto

Users
  
  • Posts

    296
  • Joined

  • Last visited

Recent Profile Visitors

2,759 profile views

zyto's Achievements

Collaborator

Collaborator (7/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Reacting Well Rare
  • Week One Done

Recent Badges

13

Reputation

  1. Ну... www - это корневая папка для домена а /shop - это первая подпапка от корня домена
  2. Если пройтись отладчиком в PHPStorm, то можно увидеть вот такого рода ошибки: front.php:21, Front->dispatch() Cannot find a local copy of the file on server C:\apache\mh3.loc\www\system\engine\front.php Local path is C:\apache\mh3.loc\www\system\engine\front.php Почему он получил такой путь?
  3. Что самое забавное - я без проблем зашёл в админку! error.log - пустой но при этом главная страница не работает... где я накосячил?
  4. Пробовал и с ним и без него - в любом случае идёт редирект на корневую директорию. Сайт лежит в папке с апачем: C:\apache\mh3.loc\www\shop\ Домен mh3.loc привязан к папке C:\apache\mh3.loc\www\ Вот файл .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 "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))"> 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 ^system/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 Вот config.php в корне папки /shop/ : <?php // HTTP define('HTTP_SERVER', 'http://mh3.loc/shop/'); // HTTPS define('HTTPS_SERVER', 'http://mh3.loc/shop/'); // DIR define('DIR_APPLICATION', 'C:/apache/mh3.loc/www/shop/catalog/'); define('DIR_SYSTEM', 'C:/apache/mh3.loc/www/shop/system/'); define('DIR_LANGUAGE', 'C:/apache/mh3.loc/www/shop/catalog/language/'); define('DIR_TEMPLATE', 'C:/apache/mh3.loc/www/shop/catalog/view/theme/'); define('DIR_CONFIG', 'C:/apache/mh3.loc/www/shop/system/config/'); define('DIR_IMAGE', 'C:/apache/mh3.loc/www/shop/image/'); define('DIR_CACHE', 'C:/apache/mh3.loc/www/shop/system/storage/cache/'); define('DIR_DOWNLOAD', 'C:/apache/mh3.loc/www/shop/system/storage/download/'); define('DIR_LOGS', 'C:/apache/mh3.loc/www/shop/system/storage/logs/'); define('DIR_MODIFICATION', 'C:/apache/mh3.loc/www/shop/system/storage/modification/'); define('DIR_UPLOAD', 'C:/apache/mh3.loc/www/shop/system/storage/upload/'); // DB ... На мой взгляд всё верно настроено, но не работает... Помогите найти в чём косяк?
  5. Сделал, всёравно перенаправляет на site.ru (.htaccess по прежнему удалён)
  6. Хочу установить опенкарт в подпапку /shop Скопировал файлы в эту папку. В .htaccess прописал в RewriteBase /shop/ В config.php пробовал и так: define('HTTP_SERVER', 'http://site.ru/'); и так: define('HTTP_SERVER', 'http://site.ru/shop'); Перехожу по адресу: http://site.ru/shop - и меня перенаправляет на основной домен - site.ru Пробовал http://site.ru/shop/index.php- то же самое... Пробовал удалить полностью файл .htaccess - всё равно перенаправляет на главную Переименовал index.php, добавил текстовый index.html - открывается без проблем по адресу site.ru/shop, т.е. перенаправление явно идёт где-то в коде движка... Что ещё нужно настроить?
  7. Подскажите, я правильно понял, что шаблон существует в единственном цвете - красном? Нет каких-то (может быть загружаемых?) пакетов настроек для разных цветов? Например мне были бы интересны темы: синий, зелёный, жёлтый, оранжевый, фиолетовый. Я так понял сейчас нужно изменить сотню настроек чтобы изменить цвет шаблона, а хотелось бы всё сделать "одной кнопкой".
  8. Хорошая темка... Автор, есть возможность помучать шаблон на локальном сайте перед покупкой?
  9. Вдруг кому-то пригодится - надо было в настройках сайта отключить перенаправление на https, тогда правила в htaccess нормально отрабатывают
  10. Дано: сайт лежит на хостинге timeweb (обычный, не VDS). К сайту в админке привязано 2 домена: s1.ru и s2.ru + подключен их https-сертификат Хочу что бы при заходе на домен s2.ru был редирект 301 на https://s1.ru, и основное зеркало что бы было https://s1.ru Никак не могу сделать такое с одним сайтом и привязанным к нему 2мя доменами. Выкрутился так что сделал 2 сайта, и у второго поставил редирект, тогда всё отлично работает, а с одним сайтом не хочет. Сейчас в .htaccess основного сайта прописано: RewriteCond %{HTTP_HOST} !^s1\.ru$ [NC] RewriteRule (.*) https://s1.ru/$1 [R=301,L] Я думал этот код должен подменять любой домен на который пришёл пользователь на основной и добавлять https А в реальности происходит только добавление https, но редиректа на осноной домен нету. Т.е. если я захожу на http://s2.ru то идёт перенаправлеие на https://s2.ru а на s1.ru не перенаправляет... Пробовал выше этого кода ещё дописать явно мой второй домен: RewriteCond %{HTTP_HOST} ^s2\.ru RewriteRule ^(.*)$ https://s1.ru/$1 [R=301,L] Но это тоже не работает... Что я делаю не так? Как сделать правильно?
  11. В данный момент для 2.3 не работает, для 2.1 работает более-менее стабильно.
  12. Подниму темку, тоже не откажусь купить модуль оплаты для advcash. Кто-нибудь собирается писать его?
  13. Я хотел сказать обмен статусами... Особенно меня интересует выгрузка статусов из 1С - оплачен и доставлен... PS Так что насчёт одинаковых SEO ЧПУ?
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.