当前位置: 动力学知识库 > 问答 > 编程问答 >

mysql - Remove .php and id from url and replace with slash make a seo friendly url

问题描述:

This question already has an answer here:

  • How to create friendly URL in php?

    8 answers

网友答案:

Use htaccess RewriteRule

RewriteRule ^product/([0-9]+)/?$ product.php?cat_id=$1 [NC,L]
分享给朋友:
您可能感兴趣的文章:
随机阅读: