[英]htaccess redirect to url with query string?
I would like to redirect domain.xyz/something to domain.xyz/abc/?querystring via htacess.我想通过 htacess 将domain.xyz/something重定向到domain.xyz/abc/?querystring 。 (Most similar questions raised were intended the other way around.) Any help would be greatly appreciated!
(提出的大多数类似问题都是相反的。)任何帮助将不胜感激! Thanks!
谢谢!
RewriteEngine On
RewriteCond (...)
<- a frequent answer but perhaps "the other way around" to what I'm looking for <- 一个常见的答案,但也许是我正在寻找的“另一种方式”
Unless you have other requirements or directives in the .htaccess
file then it's potentially just a straightforward redirect:除非您在
.htaccess
文件中有其他要求或指令,否则它可能只是一个简单的重定向:
Redirect 302 /something /abc/?querystring
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.