apache - How to rewrite URL using .htaccess -


i have php script in directory called http://example.com/api/login.php passing action=myaction&email=me@domain.com&password=mypassword

i want on how can write http://example.com/api/login uri in c# code

below .htaccess:

rewriteengine on # turn on rewriting engine  rewriterule ^login/?$ login.php [nc,l] rewriterule ^login/([0-9]+)/?$ login.php?email=$1&password$1&action=$1 [nc,l] 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -