开发者

htaccess redirect in limesurvey one survey to another

开发者 https://www.devze.com 2023-02-15 15:35 出处:网络
i would like to redirect my.subdomain.eu/index.php?sid=34588&lang=de to my.subdomain.eu/index.php?sid=12345&lang=de.

i would like to redirect my.subdomain.eu/index.php?sid=34588&lang=de to my.subdomain.eu/index.php?sid=12345&lang=de.

i tried:

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

but it did not work. Any ideas what i did wrong?

Thank开发者_如何学Gos,

Nils


I think you just need to not include your domain in the first part :

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

But then, depending on your architecture, you might need to set a condition to match your subdomain with RewriteCond and a RewriteRule

0

精彩评论

暂无评论...
验证码 换一张
取 消