如何在 opencart 中的 seo friendly url 之间添加斜杠
How To add slash between seo friendly url in opencart
当我在像 'abcd-test' 或 'abcd-test.htm' 这样的 opencart 上添加 seo 友好 url 时,它起作用了。
但是当我添加 'abcd-test/22123.htm' 时,IT 重定向到 'www.example.com/abcd-test/22123.htm' 但它显示
The page you requested cannot be found!
我已经在 opencart 以外的其他框架中建立了一个网站,该网站在 google 排名上表现良好。但我需要在 opencart 上移动这个网站,我需要为大多数页面制作相同的 url。在此过程中,我现有的网站有 url,如“www.example.com/category-s/12234.htm
任何人都会面临同样的问题,并且任何人都有针对这种情况的解决方案。
由于 OpenCart 路由器的工作方式,您无法使用。它采用 URL 并将其分隔在正斜杠上。然后它将斜线之间的键与变量值匹配,并最终根据该变量值进行路由。
例如:
http://mysight.com/one/two/three
相当于 http://mysight.com/index.php?var1=1&var2=2&var3=3
.
注意:此示例并非基于 OpenCart 页面,它只是解释 OpenCart 的路由器如何转换为原始 PHP。
通过在您的 SEO URL 别名中包含正斜杠,OpenCart 认为它需要匹配根本不存在的键,并且因为它无法路由到有效页面,所以它只是将您重定向到默认页面404 页面。
I found the answer:
In opencart To dayplay
www.example.com/test-abc/12234.htm
Here we need to have category or manufacturer with seo keyword test-abc
and
12234.htm
in product seo url.
Url/product
Url/parent-cat/product
Url/parent/child/product
所以如果我在 www.example.com/test-abc
,
它是类别页面,如果我在 www.example.com/test-abc/12234.htm
中,则表示它是属于 test-abc
类别的产品页面。
it work me
当我在像 'abcd-test' 或 'abcd-test.htm' 这样的 opencart 上添加 seo 友好 url 时,它起作用了。 但是当我添加 'abcd-test/22123.htm' 时,IT 重定向到 'www.example.com/abcd-test/22123.htm' 但它显示
The page you requested cannot be found!
我已经在 opencart 以外的其他框架中建立了一个网站,该网站在 google 排名上表现良好。但我需要在 opencart 上移动这个网站,我需要为大多数页面制作相同的 url。在此过程中,我现有的网站有 url,如“www.example.com/category-s/12234.htm
任何人都会面临同样的问题,并且任何人都有针对这种情况的解决方案。
由于 OpenCart 路由器的工作方式,您无法使用。它采用 URL 并将其分隔在正斜杠上。然后它将斜线之间的键与变量值匹配,并最终根据该变量值进行路由。
例如:
http://mysight.com/one/two/three
相当于 http://mysight.com/index.php?var1=1&var2=2&var3=3
.
注意:此示例并非基于 OpenCart 页面,它只是解释 OpenCart 的路由器如何转换为原始 PHP。
通过在您的 SEO URL 别名中包含正斜杠,OpenCart 认为它需要匹配根本不存在的键,并且因为它无法路由到有效页面,所以它只是将您重定向到默认页面404 页面。
I found the answer:
In opencart To dayplay
www.example.com/test-abc/12234.htm
Here we need to have category or manufacturer with seo keyword
test-abc
and12234.htm
in product seo url.
Url/product
Url/parent-cat/product
Url/parent/child/product
所以如果我在 www.example.com/test-abc
,
它是类别页面,如果我在 www.example.com/test-abc/12234.htm
中,则表示它是属于 test-abc
类别的产品页面。
it work me