【问题标题】:how to make clean url using htaccess for subdomain如何使用 htaccess 为子域制作干净的 url
【发布时间】:2012-12-21 17:37:55
【问题描述】:

例如我的域是 www.examples.com,子域是 test2.examples.com 我正在使用 url 变量来链接页面。 例如test2.examples.com/index.php?page=registers 但我想要干净的网址 test2.examples.com/page/registers

如何使用 HTACCESS 文件执行此操作。 我可以将 HTACCESS 用于子域吗,否则不允许

【问题讨论】:

  • 您使用的是什么内容管理系统?

标签: .htaccess clean-urls


【解决方案1】:

您正在寻找 URL 重写,它将满足您的所有需求。请参阅此URL Rewriting Guide

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-02
    • 1970-01-01
    • 2013-09-22
    • 1970-01-01
    • 1970-01-01
    • 2015-08-16
    相关资源
    最近更新 更多