D
D
Denis A.2020-01-14 19:34:15
htaccess
Denis A., 2020-01-14 19:34:15

How to open category with catalog alias?

Greetings.
There is a category in the store with the alias "catalog", which matches the name of the opencart folder.
When I click on the site.ru/catalog link, I get Access forbidden!
Actually a question: how to make so that the category opened.
There is such an option, but not working. Why?)

RewriteCond %{REQUEST_URI} ^/catalog/?$ [NC]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)$ index.php?_route_=product/category&path=1&%1 [L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daemon23RUS, 2020-01-14
@Daemon23RUS

As an option, rename the catalog folder to something else, in config.php (main and admin) to reflect this change

define('DIR_APPLICATION', '.........../catalog+++/');
define('DIR_CATALOG','.........../catalog+++/');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question