Hi guys,
I'm helping a friend set up RewriteRule directives for a site and LiteSpeed doesn't seem to like them. I'm redirecting everything to Google to make sure it's not a box error, then going back to his site.
The following directives work:
---
RewriteEngine On
RewriteRule ^([0-9]+) http://www.google.com/$1 [R=301,L]
//
RewriteEngine On
RewriteRule ^test([0-9]+) http://www.google.com/$1 [R=301,L]
//
RewriteEngine On
RewriteRule ^test/([0-9]+) http://www.google.com/$1 [R=301,L]
---
But the following fails:
---
RewriteEngine On
RewriteRule ^test?([0-9]+) http://www.google.com/$1 [R=301,L]
//
RewriteEngine On
RewriteRule ^test\?([0-9]+) http://www.google.com/$1 [R=301,L]
---
As soon as I add the ? character, LiteSpeed gives me a 404.
I checked prior threads on Google (site:litespeedtech.com rewriterule), but found none that specifically mentioned this.
Suggestions?
Thanks,
Steven
I'm helping a friend set up RewriteRule directives for a site and LiteSpeed doesn't seem to like them. I'm redirecting everything to Google to make sure it's not a box error, then going back to his site.
The following directives work:
---
RewriteEngine On
RewriteRule ^([0-9]+) http://www.google.com/$1 [R=301,L]
//
RewriteEngine On
RewriteRule ^test([0-9]+) http://www.google.com/$1 [R=301,L]
//
RewriteEngine On
RewriteRule ^test/([0-9]+) http://www.google.com/$1 [R=301,L]
---
But the following fails:
---
RewriteEngine On
RewriteRule ^test?([0-9]+) http://www.google.com/$1 [R=301,L]
//
RewriteEngine On
RewriteRule ^test\?([0-9]+) http://www.google.com/$1 [R=301,L]
---
As soon as I add the ? character, LiteSpeed gives me a 404.
I checked prior threads on Google (site:litespeedtech.com rewriterule), but found none that specifically mentioned this.
Suggestions?
Thanks,
Steven
Last edited: