简体   繁体   中英

Using htaccess to redirect URL from one query string to another

I need to redirect

from

/showthread.php?tid=6 

to

/viewtopic.php?t=6

using htaccess. We moved from MyBB to PhpBB and would like to safe links leading to our site.

The domain remains the same. All my attempts failed.

Can someone help?

^showthread.php?tid=(\d+)$ viewtopic.php?t=$1

这应该使用htaccess redirect参数来解决问题:)

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