views:

38

answers:

2

I need a url like mydomain.com/myname/?action=post&data=10

here in a single php page(user.php) i need all 'myname','post' and '10' as get method variables. How can i get it using .htaccess???... plz help me.....

A: 

you can add the following to .htaccess

RewriteEngine On
RewriteBase /myname/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?$1 [L]
Digital Human