Clean URL's [SOLVED]
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Clean URL's [SOLVED]
Hello again!
One additional adapt of url's!
By default all url's have prefix and suffix in url's.
Exapmle: mydomain.tld/product-detail/d/product-name/0
How to adapt url's without /d and /0
Exapmle: mydomain.tld/product-detail/product-name
// Typo3 10.4.11 / Aimeos 20.10.4 / PHP 7.3 / Linux //
One additional adapt of url's!
By default all url's have prefix and suffix in url's.
Exapmle: mydomain.tld/product-detail/d/product-name/0
How to adapt url's without /d and /0
Exapmle: mydomain.tld/product-detail/product-name
// Typo3 10.4.11 / Aimeos 20.10.4 / PHP 7.3 / Linux //
Last edited by goransabo on 22 Dec 2020, 19:46, edited 1 time in total.
Re: Clean URL's
To remove the "/x" at the end, add this configuration:
Code: Select all
plugins.tx_aimeos.settings.client.html.catalog.stage.standard.subparts {
}
https://aimeos.org/docs/2020.x/typo3/setup/#seo-urls
Remove the line with "'/d/{d_name}/{d_pos}'" and add another ruleset like:
Code: Select all
AimeosDetail:
type: Extbase
namespace: ai
limitToPages: [<your detail page ID>]
routes:
- { routePath: '/{d_name}', _controller: 'Catalog::detail' }
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Clean URL's
I have added:
and this in template setup:
Now resutl is:
product/product-name?ai%5Bd_pos%5D=0
Code: Select all
routeEnhancers:
PageTypeSuffix:
type: PageType
default: ''
index: ''
map:
/: 0
feed.xml: 9818
sitemap.xml: 1533906435
newsletter.html: 1562349004
yoast-snippetpreview.json: 1480321830
Aimeos:
type: Extbase
namespace: ai
defaultController: 'Catalog::list'
routes:
- { routePath: '/pin/{pin_action}/{pin_id}/{d_name}', _controller: 'Catalog::detail' }
- { routePath: '/history/{his_action}/{his_id}', _controller: 'Account::history' }
- { routePath: '/watch/{wat_action}/{wat_id}', _controller: 'Account::watch' }
- { routePath: '/watch/{wat_action}', _controller: 'Account::watch' }
- { routePath: '/fav/{fav_action}/{fav_id}', _controller: 'Account::favorite' }
- { routePath: '/fav/{fav_action}', _controller: 'Account::favorite' }
- { routePath: '/c/{f_name}~{f_catid}', _controller: 'Catalog::list' }
- { routePath: '/p/{d_name}/{d_prodid}/{d_pos}', _controller: 'Catalog::detail' }
- { routePath: '/lt/{l_type}', _controller: 'Catalog::list' }
- { routePath: '/lp/{l_page}', _controller: 'Catalog::list' }
- { routePath: '/ls/{f_sort}/{l_page}', _controller: 'Catalog::list' }
- { routePath: '/l/{f_sort}', _controller: 'Catalog::list' }
- { routePath: '/b/{b_action}', _controller: 'Basket::index' }
- { routePath: '/co/{c_step}', _controller: 'Checkout::index' }
defaults:
b_action: ''
c_step: ''
f_sort: ''
d_pos: ''
AimeosDetail:
type: Extbase
namespace: ai
limitToPages: [40]
routes:
- { routePath: '/{d_name}', _controller: 'Catalog::detail' }
Code: Select all
plugins.tx_aimeos.settings.client.html.catalog.stage.standard.subparts (
)
product/product-name?ai%5Bd_pos%5D=0
Re: Clean URL's
Here is solution for fixing clean url's
Code: Select all
Aimeos:
type: Extbase
namespace: ai
defaultController: 'Catalog::list'
routes:
- { routePath: '/pin/{pin_action}/{pin_id}/{d_name}', _controller: 'Catalog::detail' }
- { routePath: '/history/{his_action}/{his_id}', _controller: 'Account::history' }
- { routePath: '/watch/{wat_action}/{wat_id}', _controller: 'Account::watch' }
- { routePath: '/watch/{wat_action}', _controller: 'Account::watch' }
- { routePath: '/fav/{fav_action}/{fav_id}', _controller: 'Account::favorite' }
- { routePath: '/fav/{fav_action}', _controller: 'Account::favorite' }
- { routePath: '/c/{f_name}~{f_catid}', _controller: 'Catalog::list' }
- { routePath: '/p/{d_name}/{d_prodid}/{d_pos}', _controller: 'Catalog::detail' }
- { routePath: '/{d_name}/{d_pos}', _controller: 'Catalog::detail' }
- { routePath: '/lt/{l_type}', _controller: 'Catalog::list' }
- { routePath: '/lp/{l_page}', _controller: 'Catalog::list' }
- { routePath: '/ls/{f_sort}/{l_page}', _controller: 'Catalog::list' }
- { routePath: '/l/{f_sort}', _controller: 'Catalog::list' }
- { routePath: '/d/b/{b_action}', _controller: 'Basket::index' }
- { routePath: '/b/co/{c_step}', _controller: 'Checkout::index' }
defaults:
b_action: ''
c_step: ''
f_sort: ''
d_pos: ''