babylonjudge Posted August 19, 2010 Share Posted August 19, 2010 开启了友好url但是这个友好url不太喜欢论坛的目录页 比如nike sb 最后的尾数会变成35-nike-sb (那个35应该是nike sb这个目录的ID吧)然后产品页面 比如nike sb 01这个产品 最后尾数会变成nike sb/10-nike-sb-01.htm 现在想要的效果是nike sb目录 最后尾数变成nike-sbnike sb 01产品页面 最后尾数变成nike sb/nike-sb-01.htm不知道如何修改?是否是修改.htaccess文件? Link to comment Share on other sites More sharing options...
huhai Posted August 22, 2010 Share Posted August 22, 2010 去掉ID是不可能的,ID是寻找这个目录的惟一标识,改成这样可以:nike-sb-01-35.htm Link to comment Share on other sites More sharing options...
babylonjudge Posted August 31, 2010 Author Share Posted August 31, 2010 原来如此 对了 那对于有一些网站 他们的后缀完全没有了html 我们开启友好URL之后后缀会有.html 不知道这个是怎么实现? Link to comment Share on other sites More sharing options...
huhai Posted September 1, 2010 Share Posted September 1, 2010 修改class/Links.php文件,这个文件负责重写链接!把后缀.html去掉就行了 Link to comment Share on other sites More sharing options...
babylonjudge Posted September 2, 2010 Author Share Posted September 2, 2010 谢谢楼上的!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now