开发者

mod_rewrite, how to change the url [closed]

开发者_如何学Go As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

How do I rewrite:

domain.com/index.php/about

to:

domain.com/about


RewriteRule ^about$ /index.php/about will be the simplest one.

RewriteRule ^([^/]+)$ /index.php/$1 for a more generic treatment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜