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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -