Use seo friendly paths instead of query strings
Permalink
Hi,
I am working with a Concrete5 system that has used query strings to send some variables to the target page. I have plenty of addresses like this:
http://mysite.com/product/?var1=123...
What this product page template do is to use this query string values to select data from third-party databases. But what I wish to do is convert these addresses to a more SEO friendly paths such as:
http://mysite.com/product/var1-123/...
Is there a way to hook into the Concrete path handler and make it pick 'product' page instead of var1-123, which is only a variable, not an actual page?
I am working with a Concrete5 system that has used query strings to send some variables to the target page. I have plenty of addresses like this:
http://mysite.com/product/?var1=123...
What this product page template do is to use this query string values to select data from third-party databases. But what I wish to do is convert these addresses to a more SEO friendly paths such as:
http://mysite.com/product/var1-123/...
Is there a way to hook into the Concrete path handler and make it pick 'product' page instead of var1-123, which is only a variable, not an actual page?
https://documentation.concrete5.org/developers/working-with-pages/si...
See the section 'URL Routing to Single Page controllers' on this doco page:
https://documentation.concrete5.org/developers/working-with-pages/si...
That explains how you can map parameters (paths) in your urls to variables to use.