To create custom SEO-friendly URLs in OpenCart, follow these steps:
It's important to note that after making changes to the SEO URLs, you should clear the cache and regenerate the .htaccess file to ensure the changes take effect. This can be done from System > Maintenance.
In addition to the steps mentioned above, you can also create custom SEO-friendly URLs for specific products, categories, or pages in OpenCart by following these steps:
For custom pages, you can follow these steps:
Remember to clear the cache and regenerate the .htaccess file after making any changes to ensure they are applied correctly.
To clear the cache in OpenCart, follow these steps:Log in to the OpenCart administrator panel.Go to System > Settings > Edit > Server tab.Under "Cache", click on the "Clear" button.You can also clear the cache directly from the OpenCart root directory by deleting the contents of the "system/storage/cache" folder and the "image/cache" folder.
To regenerate the .htaccess file in OpenCart, follow these steps:Open the "Admin" folder in your OpenCart installation.Open the "index.php" file in a text editor.Add the following line of code at the beginning of the file: define('CFG_REBUILD', true);Save the changes and upload the modified "index.php" file back to the "Admin" folder.Access your OpenCart administrator panel.Go to System > Maintenance.Click the "Rebuild" button to regenerate the .htaccess file.Once the process is complete, remove the line of code you added to the "index.php" file to prevent the .htaccess file from being regenerated again in the future.
By following these steps, you can create custom SEO-friendly URLs in OpenCart for better search engine optimization.