Fix URL rewriting not to match empty parts.

This commit is contained in:
Michal Čihař
2005-10-13 14:14:59 +00:00
parent efa10c4bb8
commit a736fdd365
2 changed files with 5 additions and 2 deletions

View File

@@ -2834,8 +2834,8 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
<pre>
RewriteEngine On
RewriteBase /path_to_phpMyAdmin
RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)$ index.php?db=$1&amp;table=$2 [R]
RewriteRule ^([a-zA-Z0-9_]*)$ index.php?db=$1 [R]
RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index.php?db=$1&amp;table=$2 [R]
RewriteRule ^([a-zA-Z0-9_]+)$ index.php?db=$1 [R]
</pre>
<a name="faqconfig"></a><br />