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

Как настроить переадресацию


Recommended Posts

Проблема в следуюещём:

Если на главной страниэто сайи бугдет знак вопроса в пути, то відает ошибку 500. На товаре и категории все норм.

Как правильно настроить в .htaccess ? Помогите, пожалуйси.

Например: https://stekol.net.ua/?fbclid=IwAR3uKSwJatu8qxoahCSjOTl4ofibrGGh4uiZohLvOk-H7kw7T5bIjI1ofPs

Выдает ошибку 500 изза "?fbclid=IwAR3uKSwJatu8qxoahCSjOTl4ofibrGGh4uiZohLvOk-H7kw7T5bIjI1ofPs" в ссылке. И икая проблема только с главной страниэтот связана

Link to comment
Share on other sites


Options +SymLinksIfOwnerMatch

# 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_URI} !^/robots\.txt$
RewriteCond %{HTTP:X-Forwarded-proto} !^https$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ fx-sitemap [L]
RewriteRule ^googlebase.xml$ fx-sitemap [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]

 

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.