我有一条改写规则,修改<代码>example.com/en/about/topic至example.com/en/view.php?p=pages/about/topic.php
。
我的规则是:
Rewrite Rule ^en/([a-zA-Z0-9/]+)$ en/view.php?p=pages/$1.php
观点。 php有我所坚持的脚.,如菜单、木.等,它使用一个包含网页/图像的营地。 php
它使用<条码>example.com/en/topic-> example.com/en/view.php?p=pages/topic.php,但当我尝试<条码>example.com/en/about/topic-> example.com/en/view.php?p=pages/about/topic.php和 我是今天的。 虽然我确实发现了 mo树_和一对handyguides。 这里,我的记录就是这样说的。 com/en/测试(奏效): [perdir C:/tt/xampp/htdocs/] rewrite en/test ->
en/view.php?p=pages/test.php [perdir C:/tt/xampp/htdocs/] strip document_root prefix:
C:/tt/xampp/htdocs/en/view.php -> /en/view.php [perdir C:/tt/xampp/htdocs/] internal redirect with /en/view.php
[INTERNAL REDIRECT] [perdir C:/tt/xampp/htdocs/] pass through
C:/tt/xampp/htdocs/en/view.php [perdir C:/tt/xampp/htdocs/] pass through
C:/tt/xampp/htdocs/en/base/code/view.css and for example.com/en/about/test (which does not) [perdir C:/tt/xampp/htdocs/] rewrite en/about/dir/test ->
en/view.php?p=pages/about/dir/test.php [perdir C:/tt/xampp/htdocs/] strip document_root prefix:
C:/tt/xampp/htdocs/en/view.php -> /en/view.php [perdir C:/tt/xampp/htdocs/] internal redirect with /en/view.php
[INTERNAL REDIRECT] [perdir C:/tt/xampp/htdocs/] pass through
C:/tt/xampp/htdocs/en/view.php [perdir C:/tt/xampp/htdocs/] C:tt/xampp/htdocs/en/about Any help would be much appreciated!