I want to pass a url parameters like example.com/username
or example.com/myemail@gmail.com
i want to match two condition if anyone is true to select from table?
Here's my .htaccess code
# Default index page
DirectoryIndex index.php
# Remove file extensions
RewriteCond %{REQUEST_FILENAME} !-f
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
# Display a custom error message
#ErrorDocument 404 http://localhost//
#ErrorDocument 500 http://localhost//
#ErrorDocument 404 404
#ErrorDocument 500 500
#Profile rewrite
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?ref=$1