.htaccess - how to remove repeated characters from url?
问题 I have the following url: example.com/hellllllllllo And I was looking for a way to avoid repeated characters up to double. Inspired by this question/answers Remove Characters from URL with htaccess I have created the following htaccess document to avoid repeated characters. If the character is repeated more than 23 times the url is not completely rewrited and I was wondering if there is any possible improvment? RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{REQUEST_URI} ^(.*)l{3,}(.*)$