I want to redirect
domain.com/games-10/my-game to domain.com
domain.com/games-10/yours-game to domain.com
domain.com/games-10/his-game to domain.com
I have tried:
Rewriterule ^games-10/(.*)$ http://domain.com$1 [r=301, L]
RewriteRule ^games-10/([^/]+)/?$ http://domain.com [R=301, L]
with no luck.
This should totally work :)
RewriteEngine On
RewriteRule ^games-10/.*$ http://domain.com [R=301,L]
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.