htaccess RewriteRule problem
问题 I have a problem with RewriteRules. I'm currently using this rule: RewriteRule ^([^/.]+)/?$ index.php?clip=$1 This works fine for links as these, where $_GET['clip'] is the value after the slash: http://example.com/abcdefg But not for those with a dot character, like these: http://example.com/abcdefg.png How should I change the RewriteRule to make it work for such links? 回答1: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/?$ index.php?clip=$1 i