php - htaccess rewrite alphanumeric and symbols -


i want pass url parameters example.com/username or example.com/myemail@gmail.com want match 2 condition if true select table? here's .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 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 


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -