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

Помощь в проблеме с URL.


 Share

Recommended Posts

Доброе время суток всем.
Помогите разобраться с URL.
Перед открытием магазина решил прогнать его по сео-анализаирам.

Магазин на OpenCart 3.0.2.0.

Домен https://sanwest.com.ua.

После сканирования screaming frog нашлось только около 250 ссылок, хотя одного товара было потому чтольше 1000. Большинство ссылок были с кодом 0 или 500. Решил проверить SiteAnalyzer. Ситуация похожая, показало еещё 130 битых ссылок.  Посмотрел эти битые ссылки, в конэто не было слеша. Решил добавить его прописав в файле .htaccess :
RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_URI} !(.*)/$

RewriteRule ^(.*[^/])$ $1/ [L,R=301]
Ситуация не много изменилась ссылок находит около 1000 из них битых 394. Страниц нашло всего 12.
Усиновлен модуль SEO мультиязык / мультирегион.

Осильные нюансы в личных сообещёниях.

Файл .htaccess :
RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} ^sanwest.prokotel.com.ua

RewriteRule (.*) http://sanwest.com.ua/$1 [R=301,L]

# 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|.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/

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_URI} !(.*)/$

RewriteRule ^(.*[^/])$ $1/ [L,R=301]

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$

RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

RewriteBase /

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]

Edited by sergeodem
Link to comment
Share on other sites


3 часа назад, Otvet сказал:

Очередная жертва чтения ситей про слэши и htaccess от мудаков

Подскажите ситьи от не мудаков или как  по другому решить проблему.

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

×
×
  • 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.