padhie
padhie

Reputation: 47

htaccess multi parameter detection

First of all sorry for my bad english, I hope you'll understand me.

I'd like to use one RewriteRule to detect multiple url area (eg.: foo/bar/more/read/)

The regexp for this is very simple: ([^\/]*\/?), but I can use this as one parameter.

Have you any idea, how I can give the params like this:

RewriteRule ^([^\/]*\/?)$ index.php?param1=$1&param2=$2&param3=$3

Thanks for your help :)

Upvotes: 0

Views: 59

Answers (1)

Vrac
Vrac

Reputation: 1084

I think you are look for something like this, to process n number of parameters?

Alternatively you could just send everything to index.php with:

RewriteRule ^(.*)$ index.php?path=$1 [QSA]

...and split the querystring in php. There is something to be said for simplicity...

Upvotes: 2

Related Questions