【问题标题】:.htaccess how to make more than one variable to a simple url [closed].htaccess 如何为一个简单的 url 创建多个变量 [关闭]
【发布时间】:2012-11-23 13:02:55
【问题描述】:

您好,我想从非常复杂的 url 中创建一个友好的 url。

我现在的网址是:

mydomain.net/?t=status&b=iid&ref=7007&ty=comment

当用户访问该网址时,我想将其设为:

http://mydomain.net/status/comment

有可能吗?

不是。我需要:mydomain.net/t/b/ref/comment

【问题讨论】:

标签: apache .htaccess


【解决方案1】:

访问Apache document

在这里您将找到如何重写 .htaccess mod rewrite。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-17
    • 1970-01-01
    • 2015-05-18
    • 1970-01-01
    • 2016-05-27
    • 2018-03-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多