【发布时间】:2015-01-04 08:03:34
【问题描述】:
原网址:
https://www.doctor24.ro/i/index.php/en/property/54a402a9d4f13/Sapientek-Ecografie
.htaccess 后请求的 url:
https://www.doctor24.ro/i/cabinet/Sapientek-Ecografie
.htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^cabinet/(.*)$ ./index.php/en/property/([a-zA-Z0-9-=_?]+)*$
有什么问题?
更新:
我正在使用的脚本使用 codeigniter url 路由。
【问题讨论】:
-
“54a402a9d4f13”从何而来?
-
我的意思是,属性 id 是如何进入 .htaccess RewriteRule 的?
标签: php apache .htaccess codeigniter mod-rewrite