简体   繁体   中英

htaccess redirect to url with query string?

I would like to redirect domain.xyz/something to domain.xyz/abc/?querystring via htacess. (Most similar questions raised were intended the other way around.) Any help would be greatly appreciated! Thanks!

Redirect Query String

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:

Redirect 302 /something /abc/?querystring

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM