【问题标题】:Drupal URL RedirectionDrupal URL 重定向
【发布时间】:2015-05-02 20:45:29
【问题描述】:

我们网站的主页-http://urn1350.net/,我们想改成http://urn1350.net/elections作为主页。在 drupal 和 apache 服务器的后端,我有哪些 URL 重定向选项

【问题讨论】:

    标签: apache url redirect drupal url-redirection


    【解决方案1】:
    1. 在 http 根目录中创建一个“选举”文件夹并将 Drupal 站点移动到该文件夹​​。
    2. 更改 htaccess 以重写文件夹的 url

    .htacces

    # If your site is running in a VirtualDocumentRoot at http://example.com/,
    # uncomment the following line:
    RewriteBase /elections
    

    【讨论】:

      【解决方案2】:

      如果您真的希望 /elections 成为首页而不只是重定向,请转到 /admin/config/system/site-information,您可以将默认首页从“front”更改(或你现在拥有的任何东西)。我建议先在 dev/QA 环境中尝试这个!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2010-12-07
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-10-04
        • 2015-09-20
        • 2010-11-22
        相关资源
        最近更新 更多