Rewrite rule on .htaccess with pattern match containing dot character is not working
<p>Im creating a site with htaccess and one of the following it's not working by bringing up an error in the browser:</p>

<pre><code>The page isn't redirecting properly
</code></pre>

<p>The rewrite rule line is:</p>

<pre><code>RewriteRule ^([a-zA-Z0-9-_\.]+)$      index.php?user=$1   [NC,L]
</code></pre>

<p>I'm using it to get user profile in a get variable, the problem seems to be solved if the dot character is removed like this:</p>

<pre><code>RewriteRule ^([a-zA-Z0-9-_]+)$      index.php?user=$1   [NC,L]
</code></pre>

<p>But i need the username format to contain the dot character.</p>

<p><strong>Examples of how it should work:</strong></p>

<pre><code>http://www.example.dev/john.88     &gt;&gt;&gt;  index.php?user=john.88
http://www.example.dev/johnsmith   &gt;&gt;&gt;  index.php?user=johnsmith
http://www.example.dev/john_smith  &gt;&gt;&gt;  index.php?user=john_smith
</code></pre>

<p>Thanks in advance.</p>