Answer the question
In order to leave comments, you need to log in
How to limit an expression to 7 characters in mod_rewire?
Rule!
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^.+\/&
RewriteRule ^([^/]*{7})$ /go\?id\=$1 [L]
Answer the question
In order to leave comments, you need to log in
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]{0,7})$ /go?id=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(+{1,7})$ /go\?id\=$1 [L]
Character 1 from one to 7 times Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question