How do I amend my .htaccess rules to allow more than 1 parameter? -


i have url 3 parameters following

http://example/songs.php?name=name&uploadedby=xyz&cat=rock

before had url 1 parameter this:

http://example/songs.php?name=name

the rules in .htaccess file follows:

rewriterule ^([a-za-z]+)$ /songs.php?name=$1  

currently works 1 parameter only.

how can make work 1 or more parameters?

help appreciated.

try this

rewriterule ^([a-za-z0-9]+)/([a-za-z0-9]+)/([a-za-z0-9]+)/?$ /songs.php?name=$1&uploadedby=$2&cat=$3 [qsa,nc,l] 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -