【问题标题】:I would like to mask URL using php [duplicate]我想使用 php 屏蔽 URL [重复]
【发布时间】:2014-07-31 06:56:00
【问题描述】:

请查看以下详细信息

假设我有一系列 URL,例如:

http://www.example.com/abcd1.html 
http://www.example.com/abcd2.html

现在我想要的是,当一些人试图访问 URL 时

应该显示特定的 abcd1.html 页面,但在浏览器地址栏中应该看起来像

http://www.example.com/abcd1
http://www.example.com/abcd2

我使用 php 作为脚本和 Apache Web 服务器。不是静态的,我从数据库中获取文件名。

【问题讨论】:

标签: php apache


【解决方案1】:

例如,试试this one 之类的路由器。

然后您可以将/something.html 路由到/something/any/path/you/want

【讨论】:

    猜你喜欢
    • 2012-08-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-08
    • 2017-11-16
    • 1970-01-01
    • 2011-02-16
    • 2014-07-13
    相关资源
    最近更新 更多