I want when the user types:
url.com/armchairs/horseshoe-armchair/
The content of:
url.com/productos/armchairs/horseshoe-armchair/
sillon-herradura
is an example, it could be any product.
How could I do it?
I have done the following but it doesn't work:
RewriteEngine On
RewriteRule ^productos/sillones/(.*)$ https://url.com/sillones/$1 [R=301,L]
I update if it helps I use CodeIgniter.
I have found the answer after 2 days, you have to modify the routes.php file
In CodeIgniter to modify the paths the file exists
routes.php
in the folder:This file exists precisely to be able to shorten your routes.
When you open the file in the uncommented code you will find something like:
These lines are known as custom routing rules . These allow you to map any URI to any controller and method, freeing you from normal convention.
To shorten the URL of:
a
you must add the rule: