OpenCart is a popular open-source ecommerce platform used by thousands of online stores worldwide. Out of the box, OpenCart generates URLs that look something like index.php?route=product/product&product_id=42. These URLs work, but they are not user-friendly or search-engine-friendly. Activating SEO URLs transforms them into clean, readable links such as yourstore.com/wireless-headphones. Clean URLs improve click-through rates, make links easier to share, and help search engines understand page content. This guide explains how to activate SEO URLs in OpenCart step by step.
How AAMAX.CO Optimizes Ecommerce Stores for Search
Enabling SEO URLs is just one part of building a high-performing online store, and AAMAX.CO handles the full picture. They are a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. Their developers can configure OpenCart servers, URL structures, and redirects, while their SEO specialists optimize product pages, categories, and site architecture for rankings. Ecommerce businesses that hire them get technical precision and marketing strategy working together to drive organic sales.
Why SEO URLs Matter
Clean URLs offer several benefits. They give search engines and users a clear idea of what a page is about before clicking. They can include relevant keywords, which may modestly support relevance. They look more trustworthy in search results and on social media. They are also easier to remember and share. While URL structure is not a major ranking factor on its own, it contributes to a better overall user and search experience.
Before You Begin
Before making changes, create a complete backup of your OpenCart files and database. Confirm whether your server runs Apache or Nginx, since the configuration steps differ. Also confirm that the Apache mod_rewrite module is enabled if you use Apache, as SEO URLs rely on URL rewriting. Your hosting provider can help confirm this if you are unsure.
Step 1: Rename the .htaccess File (Apache Servers)
OpenCart includes a file named .htaccess.txt in its root directory. Using your hosting file manager or an FTP client, locate this file and rename it to .htaccess. This file contains the rewrite rules needed for SEO URLs.
If your OpenCart store is installed in a subdirectory, such as yourstore.com/shop/, open the .htaccess file and update the RewriteBase line from / to /shop/.
Step 2: Configure Nginx (If Applicable)
Nginx does not use .htaccess files. Instead, rewrite rules must be added to your server configuration. OpenCart's documentation and community forums provide recommended Nginx rules, which typically route requests to index.php?_route_= when a file or directory does not exist. After updating the configuration, reload Nginx for the changes to take effect. If you do not have server access, ask your hosting provider to apply these rules.
Step 3: Enable SEO URLs in the Admin Panel
Log in to your OpenCart admin dashboard and follow these steps:
- Navigate to System > Settings.
- Click the Edit button next to your store.
- Open the Server tab.
- Find the Use SEO URLs option and set it to Yes.
- Click Save.
Your store will now attempt to use SEO-friendly URLs wherever keywords have been defined.
Step 4: Add SEO Keywords to Products, Categories, and Pages
OpenCart generates clean URLs only for items that have an SEO keyword assigned. To add them:
- Go to Catalog > Products, edit a product, and open the SEO tab (or the Data tab in older versions).
- Enter a unique, lowercase, hyphenated keyword such as wireless-bluetooth-headphones.
- Repeat the process for categories, manufacturers, and information pages.
Each keyword must be unique across the store. In OpenCart 3 and later, you can also manage keywords centrally under Design > SEO URL, where you can add entries for custom routes as well.
Step 5: Test Your URLs
Visit your storefront and click through products, categories, and pages to ensure the new URLs display and load correctly. If you see 404 errors, revisit your .htaccess or Nginx configuration and confirm that mod_rewrite is enabled. Clear OpenCart's cache and your browser cache if changes do not appear immediately.
Step 6: Set Up Redirects From Old URLs
If your store has been live with non-SEO URLs, search engines may have indexed the old versions. Set up 301 redirects from old URLs to new ones to preserve ranking signals and prevent duplicate content. Some OpenCart extensions automate redirect management, or you can add rules manually to your server configuration.
Step 7: Update Your Sitemap and Search Console
Generate a fresh XML sitemap that includes your new SEO URLs and submit it to Google Search Console and Bing Webmaster Tools. Monitor coverage reports for crawl errors over the following weeks.
Common Problems and Fixes
- 404 errors on all pages: Usually caused by a missing or incorrect .htaccess file or disabled mod_rewrite.
- Some URLs still show query strings: These items do not have SEO keywords assigned.
- Duplicate keyword errors: Each keyword must be unique; adjust conflicting entries.
- Homepage shows index.php: Add rules to redirect index.php to the root domain.
Conclusion
Activating SEO URLs in OpenCart involves renaming the .htaccess file or configuring Nginx, enabling the setting in the admin panel, assigning unique keywords to products and pages, testing thoroughly, and redirecting old URLs. These steps produce clean, user-friendly links that support better search visibility and user experience. For store owners who want expert help optimizing their entire OpenCart site, AAMAX.CO offers the development and SEO expertise to maximize organic growth.
Want to publish a guest post on aamconsultants.org?
Place an order for a guest post or link insertion today.

