PrestaShop Forums: 【已解决】关于.htaccess 去除数字 - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


【已解决】关于.htaccess 去除数字


【已解决】关于.htaccess 去除数字

#1 Guest_babylonjudge_*

  • --
  • Guests

Posted 19 August 2010 - 04:33 PM

开启了友好url
但是这个友好url不太喜欢
论坛的目录页 比如nike sb 最后的尾数会变成35-nike-sb (那个35应该是nike sb这个目录的ID吧)
然后产品页面 比如nike sb 01这个产品 最后尾数会变成nike sb/10-nike-sb-01.htm
现在想要的效果是
nike sb目录 最后尾数变成nike-sb
nike sb 01产品页面 最后尾数变成nike sb/nike-sb-01.htm

不知道如何修改?是否是修改.htaccess文件?

#2 Guest__*

  • --
  • Guests

Posted 22 August 2010 - 11:19 AM

去掉ID是不可能的,
ID是寻找这个目录的惟一标识,
改成这样可以:nike-sb-01-35.htm

#3 Guest__*

  • --
  • Guests

Posted 31 August 2010 - 02:14 PM

原来如此 对了 那对于有一些网站 他们的后缀完全没有了html 我们开启友好URL之后
后缀会有.html 不知道这个是怎么实现?

#4 Guest__*

  • --
  • Guests

Posted 02 September 2010 - 12:48 AM

修改class/Links.php文件,这个文件负责重写链接!
把后缀.html去掉就行了

#5 Guest__*

  • --
  • Guests

Posted 02 September 2010 - 02:29 AM

谢谢楼上的!!!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users