我已经尝试但没有找到适合PHP .htaccess
文件夹和文件信息:
.htaccess (on root)
/profile/personal.php
/profile/exam/exam_information.php
从(personal.php
)和(exam_information.php
)发送网址
/profile/2012/A1PPOAQU7
........\-------------/ // Friendly URL
/profile/exam/2012/A1PPOAQU7
.............\-------------/ // Friendly URL
我发现,htaccess但它仅适用于单个网址。请检查代码中的错误。
RewriteEngine On
RewriteRule ^([a-zA-Z0-9-/]+)$ /profile/personal.php?pid=$1
RewriteRule ^([a-zA-Z0-9-/]+)/$ /profile/personal.php?pid=$1