i am trying to build a mvc like application and i cant figure out the right .htaccess i need.
I want something like:
RewriteRule ^(.*)/(.*)/(.*)$ $1.php?action=$2&n=$3 [L]
so i can access the file that contains the proper controller and two get variables from the url. The code above doesnt work, i have been around this for 2 days now and i cant find anything like what i need anywhere.What happens there is that the 3 variables are required at the url in order to work, and thats not what i want. Sugestions?
use this:
then