News and articles
Best-selling Templates and Extensions in June 2025

Best-selling templates and extensions in June 2025: cookie notice, Yandex.Goods in search, sitemap.

 
 
 
 
 
Selection of new modules for Opencart - June 2025

New in June 2025: Personal Data and Cookie Information, MAX Notifications, Simple Shortcodes

 
 
 
 
 
Personal data and OpenCart online store in 2025

Personal Data and OpenCart Online Store in 2025. What You Need to Know and Do to Sleep Peacefully.

 
 
 
 
 
Most popular templates and extensions in May 2025

Most popular templates and extensions in May 2025: Cookie Notification, ChatGPT, Online Chat.

 
 
 
 
 

Prefixes catalog and product for OpenCart/ocStore

 
Prefixes catalog and product for OpenCart/ocStore

When migrating from other CMS to OpenCart, it is often necessary to preserve old URLs for categories and products to avoid SEO issues and redirects. In such cases, it is required to add prefixes, such as catalog for categories and product for products (other options like item or tovar can also be used). This helps maintain the old link structure. The free modifier from halfhope allows adding such prefixes to URLs for category and product pages in OpenCart/OcStore versions 2.x and 3.x.

The modifier is compatible with SEO_URL and SEO_PRO. The SQL query for adding prefixes is located in the XML file. It is distributed as is, meaning there are no guarantees for support or updates.

site/catalog/category
site/product/product

Additionally, there is a solution from Tom for those using SEOPro who need a prefix applied to all pages, including products within categories. For example, you can configure the link structure as follows:

site/catalog/category
site/catalog/category/product

The catalog prefix can be replaced with any other suitable for your system. More detailed information and installation instructions are available in the readme file included in the archive.

If you are using the catalog prefix and a custom build rather than ocstore, to avoid conflicts with the existing OpenCart catalog folder, you may need to add the following line to your .htaccess file:

RewriteCond %{REQUEST_FILENAME} !-d

Рекомендуем посмотреть
Рекомендуем прочитать
 
 


Yet, no one has left a comment to the entry.