我是否必须将每个文件放在不同的文件夹中?
喜欢:
about-us/about-us.php
profile/profile.php
等等
还是有其他自动解决方案.
我想转换
http://sitename.com/about-us/about-us.php
至
http://sitename.com/about-us
你想要漂亮的URL重写.
.htaccess该文章中的Apache 示例:
漂亮的网址: /browse/animals-24/cats-76.html
丑陋的网址: /browse.php?category=24&subcategory=76
.htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^browse/[A-Z0-9_-]+-([0-9]+)/[A-Z0-9_-]+-([0-9]+)\.html$ browse.php?category
| 归档时间: | 
 | 
| 查看次数: | 1672 次 | 
| 最近记录: |