【问题标题】:htaccess redirect in limesurvey one survey to anotherhtaccess 在limesurvey 中将一项调查重定向到另一项调查
【发布时间】:2011-03-09 15:22:20
【问题描述】:

我想将 my.subdomain.eu/index.php?sid=34588&lang=de 重定向到 my.subdomain.eu/index.php?sid=12345&lang=de。

我试过了:

RewriteEngine on
Redirect 301 http://my.subdomain.eu/index.php?sid=34588&lang=de http://my.subdomain.eu/index.php?sid=12345&lang=de

但它不起作用。任何想法我做错了什么?

谢谢,

尼尔斯

【问题讨论】:

    标签: php apache http .htaccess redirect


    【解决方案1】:

    我认为您只需要在第一部分中不包含您的域:

    RewriteEngine on
    Redirect 301 /index.php?sid=34588&lang=de http://my.subdomain.eu/index.php?sid=12345&lang=de
    

    但是,根据您的架构,您可能需要设置一个条件以将您的子域与 RewriteCondRewriteRule 匹配

    【讨论】:

    • 您好 Tsadiq,不幸的是这不起作用。我没有 RewriteCond 和 RewriteRule 教程,有很多事情要考虑。例如。我不知道我必须用“\”标记哪些字符,所以它可以工作。难道没有一种简单的方法可以将字符串“34588”替换为“12345”吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-07-12
    • 1970-01-01
    • 2016-02-25
    • 2020-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多