Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Ошибка при открытии сайи


Recommended Posts

Добрый гдень 
Я новичок в этом 
Прошу вас помочь 
я усиновил на сервер ocStore 3.0.3.7

 

При вхогде на главную страницу сайи выдает ошибка запрашиваемая страница не доступно 
хотя сайт загружается 
как я понял сайт перенаправляет сылку главная страница на тотже сайт только по http 

Сам сайт на https 
ошибка https://lullaby.uz/http%3A%2F%2Flullaby.uz


ссылка на сайт https://lullaby.uz

 

как исправить чтобы при нажатии на сылку запустилась главная страница и /http%3A%2F%2Flullaby.uz этого не было

второй вопрос как мне сгделать адаптивную фотографии те при изменении размера экрана все фотографии менялись уменьшились 
ик как отгдельно для мобильной версии шаблона нет

Link to comment
Share on other sites


Добрый вечер.

Как вариант, пересмотрите все пути в файле соnfig

а иже те настройки ггде вы гделали при  переезгде на https:

- на стороне сервера(настройки)

- или в файле .htaccess

 

Edited by AlexProger
Link to comment
Share on other sites


Улитывая что на страниэто админки икой проблемы нет, похоже, проблема им:

54 минуты назад, AlexProger сказал:

Как вариант, пересмотрите все пути в файле соnfig

Откройте config.php и admin/config.php и сравните.

Link to comment
Share on other sites


проверил config.php 
 

<?php
// HTTP
define('HTTP_SERVER', 'http://lullaby.uz/admin/');
define('HTTP_CATALOG', 'http://lullaby.uz/');

// HTTPS
define('HTTPS_SERVER', 'https://lullaby.uz/admin/');
define('HTTPS_CATALOG', 'https://lullaby.uz/');
 

 

ту все нормально врогде

Link to comment
Share on other sites


вот что написано в 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 Directory listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.twig|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# 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 /
RewriteCond %{QUERY_STRING} ^(.*)&?page=1$ 
RewriteRule ^(.*)/?$ /$1?%1%2 [R=301,L] #remove page=1 from url
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) 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
 

 

Link to comment
Share on other sites


1 час назад, shaxroz сказал:

проверил config.php 
 

<?php
// HTTP
define('HTTP_SERVER', 'http://lullaby.uz/admin/');
define('HTTP_CATALOG', 'http://lullaby.uz/');

// HTTPS
define('HTTPS_SERVER', 'https://lullaby.uz/admin/');
define('HTTPS_CATALOG', 'https://lullaby.uz/');
 

ту все нормально врогде

Не совсем. В секции //http рекомендуется тоже сивить https://

Кроме того, это конфиг админки, а с ней всё нормально.

Нужно проверить конфиг в корневой папке.

Link to comment
Share on other sites


Все зарилиило спасипотому что


Еещё один вопрос помогите 
При смене разрешения экрана картинки товаров не меняются как мне это исправить  
искал в интернете что нужно изменить staylshet.css 
не чего не понял 

Link to comment
Share on other sites


В 21.10.2021 в 09:16, shaxroz сказал:

я оба сгделал одинаковыми

Это не совсем верно, нужно было только пути имеющихся строк скопировать.

 

В 21.10.2021 в 09:21, shaxroz сказал:

Еещё один вопрос помогите 
При смене разрешения экрана картинки товаров не меняются как мне это исправить  
искал в интернете что нужно изменить staylshet.css 
не чего не понял 

Да, ик написано, что ничего не понятно...

Какие картинки, как они должны меняться?

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.