It seems like I have a problem with the question mark '?' in the regular expression:
Does anyone know what's the trouble? thx in advance! I have a couple of existing redirects:
- Code: Select all
Redirect permanent /customer_101 https://www.aaa.com/path/index.do?customer=101
Redirect permanent /customer_102 https://www.aaa.com/path/index.do?customer=102
Redirect permanent /customer_103 https://www.aaa.com/path/index.do?customer=103
- Code: Select all
https://www.aaa.com/path/index.do?customer=10x
https://www.aaa.com/path/customer_10x
- Code: Select all
Redirect temp /customer_102 https://www.bbb.com/game_over.html
- Code: Select all
https://www.aaa.com/path/index.do?customer=102
- Code: Select all
RewriteRule ^/path/index\.do.customer=102$ https://www.bbb.com/game_over.html [R=301,L]
RewriteRule ^/path/index\.do?customer=102$ https://www.bbb.com/game_over.html [R=301,L]
RewriteRule ^/path/index\.do\?customer=102$ https://www.bbb.com/game_over.html [R=301,L]
RewriteRule ^/path/index\.do\?customer\=102$ https://www.bbb.com/game_over.html [R=301,L]
RewriteRule ^/path/index\.do\?$ https://www.bbb.com/game_over.html [R=301,L]
RewriteRule ^/path/index\.do?customer\=102$ https://www.bbb.com/game_over.html [R=301,L]
RewriteRule ^.*customer=102$ https://www.bbb.com/game_over.html [R=301,L]
RewriteRule ^.*102$ https://www.bbb.com/game_over.html [R=301,L]
- Code: Select all
RewriteRule ^/path/index\.do?$ https://www.bbb.com/game_over.html [R=301,L]
RewriteRule ^/path/index\.do?.*$ https://www.bbb.com/game_over.html [R=301,L]
RewriteRule ^/path/index\.do.*$ https://www.bbb.com/game_over.html [R=301,L]
- Code: Select all
Redirect temp ...
RedirectMatch temp ...
BostX