Alex000 Posted February 14, 2024 Report Share Posted February 14, 2024 Всем привет, сайт отлично работает по протоколу http, а по https начинает глючить, стили не корректно работают и js не отрабатывает. Может кто подскажет как исправить? Сайт tbilisi.by Quote Link to post Share on other sites
sergeevizh Posted February 14, 2024 Report Share Posted February 14, 2024 Пришлите сюда файл .htaccess Quote Link to post Share on other sites
Alex000 Posted February 14, 2024 Author Report Share Posted February 14, 2024 AddDefaultCharset UTF-8 ErrorDocument 404 /404 ErrorDocument 401 /password.php RewriteEngine on # Админка теперь по адресу /simpla RewriteRule ^admin/?$ simpla [L] RewriteCond %{HTTP_HOST} ^www.tbiliso.by [NC] RewriteRule ^(.*)$ http://tbiliso.by/$1 [R=301,L] # Каталог товаров RewriteRule ^catalog/([^/]+)/?$ index.php?module=ProductsView&category=$1 [L,QSA] RewriteRule ^catalog/([^/]+)/([^/]+)/?$ index.php?module=ProductsView&category=$1&brand=$2 [L,QSA] RewriteRule ^catalog/([^/]+)/whom/([^/]+)/?$ index.php?module=ProductsView&category=$1&whom=$2 [L,QSA] RewriteRule ^catalog/([^/]+)/event/([^/]+)/?$ index.php?module=ProductsView&category=$1&event=$2 [L,QSA] RewriteRule ^sale/?$ index.php?module=ProductsView&mode=sale [L,QSA] RewriteRule ^hits/?$ index.php?module=ProductsView&mode=hits [L,QSA] RewriteRule ^products/([^/]+)/?$ index.php?module=ProductView&product_url=$1 [L,QSA] RewriteRule ^products/?$ index.php?module=ProductsView [L,QSA] RewriteRule ^brands/([^/]+)/?$ index.php?module=ProductsView&brand=$1 [L,QSA] RewriteRule ^brands/([^/]+)/page_([^/]+)/?$ index.php?module=ProductsView&brand=$1&page=$2 [L,QSA] RewriteRule ^whoms/([^/]+)/?$ index.php?module=ProductsView&whom=$1 [L,QSA] RewriteRule ^events/([^/]+)/?$ index.php?module=ProductsView&event=$1 [L,QSA] # Поиск товаров RewriteRule ^search/([^/]+)/?$ index.php?module=ProductsView&keyword=$1 [L,QSA] RewriteRule ^search/?$ index.php?module=ProductsView [L,QSA] # Новости RewriteRule ^news/([^/]+)/?$ index.php?module=BlogView&url=$1 [L,QSA] RewriteRule ^news/?$ index.php?module=BlogView [L,QSA] # Альбом RewriteRule ^photo/([^/]+)/?$ index.php?module=PhotoView&url=$1 [L,QSA] RewriteRule ^photo/?$ index.php?module=PhotoView [L,QSA] # Корзина и заказы RewriteRule ^cart/?$ index.php?module=CartView [L,QSA] RewriteRule ^cart/([^/]+)/?$ index.php?module=CartView&add_variant=$1 [L,QSA] RewriteRule ^cart/remove/([^/]+)/?$ index.php?module=CartView&delete_variant=$1 [L,QSA] RewriteRule ^order/([^/]+)/?$ index.php?module=OrderView&url=$1 [L,QSA] RewriteRule ^order/?$ index.php?module=OrderView [L,QSA] # Для пользователей RewriteRule ^user/login/?$ index.php?module=LoginView [L,QSA] RewriteRule ^user/register/?$ index.php?module=RegisterView [L,QSA] RewriteRule ^user/logout/?$ index.php?module=LoginView&action=logout [L,QSA] RewriteRule ^user/password_remind/?$ index.php?module=LoginView&action=password_remind [L,QSA] RewriteRule ^user/password_remind/([0-9a-z]+)/?$ index.php?module=LoginView&action=password_remind&code=$1 [L,QSA] RewriteRule ^user/?$ index.php?module=UserView [L,QSA] # Google sitemap RewriteRule ^sitemap.xml?$ sitemap.php [L,QSA] # XML RewriteRule ^yandex.xml?$ yandex.php [L,QSA] # feedback RewriteRule ^contact/?$ index.php?module=FeedbackView [L,QSA] #downloads RewriteRule ^order/([^/]+)/([^/]+)/?$ index.php?module=OrderView&url=$1&file=$2 [L,QSA] # Статические страницы RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]*)/?$ index.php?module=PageView&page_url=$1 [L,QSA] RewriteRule ^/?$ index.php?module=MainView&page_url= [L,QSA] # Ресайз картинок на лету RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^files/products/(.+) resize/resize.php?file=$1&token=%{QUERY_STRING} #RewriteCond %{THE_REQUEST} ^GET\ (.*)files/products/(.*)\?([A-z0-9]*) #RewriteRule ^files/products/(.+) resize/resize.php?file=%2&token=%3 [L,NE] RewriteRule ^files/otzuvy/(.+) resize/resizepost.php?file=$1&token=%{QUERY_STRING} #RewriteCond %{THE_REQUEST} ^GET\ (.*)files/otzuvy/(.*)\?([A-z0-9]*) #RewriteRule ^files/otzuvy/(.+) resize/resizepost.php?file=%2&token=%3 [L,NE] RewriteRule ^files/post/(.+) resize/resizeblog.php?file=$1&token=%{QUERY_STRING} #RewriteCond %{THE_REQUEST} ^GET\ (.*)files/post/(.*)\?([A-z0-9]*) #RewriteRule ^files/post/(.+) resize/resizeblog.php?file=%2&token=%3 [L,NE] RewriteRule ^files/photo/(.+) resize/resizealbum.php?file=$1&token=%{QUERY_STRING} #RewriteCond %{THE_REQUEST} ^GET\ (.*)files/photo/(.*)\?([A-z0-9]*) #RewriteRule ^files/photo/(.+) resize/resizealbum.php?file=%2&token=%3 [L,NE] # php -- BEGIN cPanel-generated handler, do not edit # Set the “alt-php70” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-alt-php70___lsphp .php .php7 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit Не получилось файл прикрепить. Quote Link to post Share on other sites
sergeevizh Posted February 14, 2024 Report Share Posted February 14, 2024 3 минуты назад, Alex000 сказал: RewriteCond %{HTTP_HOST} ^www.tbiliso.by [NC] RewriteRule ^(.*)$ http://tbiliso.by/$1 [R=301,L] Вот этот кусок замените на # Redirect to HTTPS: RewriteCond %{HTTPS} =off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # Redirect from www to without www: RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] Quote Link to post Share on other sites
sergeevizh Posted February 14, 2024 Report Share Posted February 14, 2024 Вопрос решился Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.