[英]How to Remove main category from URL in K2 in Joomla 2.5
What I have: Joomla 2.58 , K2 , sh404sef 我拥有的:Joomla 2.58,K2,sh404sef
Problem : I want to put K2 main category on my Homepage, so it shows a few folders of Sub-categories... But I don't want the main category to be seen in URL. 问题:我想在主页上放置K2主要类别,因此它显示了一些子类别文件夹...但是我不希望在URL中看到主要类别。 But all other categories should be seen. 但是应该看到所有其他类别。 How to do that?! 怎么做?!
For example, now, after sh404sef I'm getting url : http://mypage.com/all-categories/clothes/ 例如,现在,在sh404sef之后,我得到的网址是: http ://mypage.com/all-categories/clothes/
But I want it to be: http://mypage.com/clothes/ //Because Main-Category have nothing, only Sub's.. 但我希望它是: http : //mypage.com/clothes/ //因为Main-Category没有任何东西,只有Sub ..
Are you able to select all the sub-categories for the menu item instead of the parent? 您是否可以选择菜单项的所有子类别而不是父项?
OR 要么
Remove directory from url htaccess apache 从URL htaccess apache删除目录
In .htaccess: 在.htaccess中:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteRule ^((?!all-categories/).*)$ bar/$1 [NC,L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.