Url Rewriting or Rails-like routing
Permalink
Is there a way to route URL's in a way that does not match the site structure in the sitemap? Without redirecting?
For example, I might want 3 different urls:
/products/televisions
/products/mp3-players
/products/computers
to all go to a product page with a block on it that is smart enough to take the last part of the url and filter that by category. i don't want to make 3 identical pages in concrete with the same block.
For example, I might want 3 different urls:
/products/televisions
/products/mp3-players
/products/computers
to all go to a product page with a block on it that is smart enough to take the last part of the url and filter that by category. i don't want to make 3 identical pages in concrete with the same block.
External links cause a redirect. I do not want that. The url needs to stay /products/television even if its going to /products/detail
Then unfortunately.......you will probably have little choice but to hack concrete5 core.
I think the only way to do this is with rewrite rules in your htaccess file. Would be nice if the "Additional Paths" page property had a choice for this functionality, but it only does 301 redirects.
I'm not certain of the context in which you are doing this but single pages might be the way.
For example if you could live with the path of catalogue/products/televisions etc, then a single page named catalogue, with a controller method of products would allow you pass the sub category as an argument so you serve your results dynamically.
For example if you could live with the path of catalogue/products/televisions etc, then a single page named catalogue, with a controller method of products would allow you pass the sub category as an argument so you serve your results dynamically.
However I'm not sure how you would detect which link they clicked on...