It works perfectly as is, but I'm trying to add it so that if there is more to it for example /viewgal/photos/2 or /viewgal/photos/landscape/3 basically I want everything after photos in this case to be added to &qry=landscape/3. I tried adding this:
But that doesn't work. Basically I want everything after that to be in one $_GET variable called $qry that I can process how i want in each controller. Basically it goes /controller/function/arg/ume/nts and i want it to rewrite to index.php?resource=controller&page=function&qry=arg/ume/nts Like i said as long as I don't send arguments it works just fine, I'm trying to add arguments and I can't figure out.
I've tried that it only works as long as there is only a third "argument" passed. IE:
example.com/gallery/viewimg/25
however if i wanted to do more agurments all arguments starting at 3 i just want to set to qry IE:
example.com/blog/viewpost/2011/march/25/1872-its-my-fav-day
would break and I don't want to have to create a rule for every possible number of spoofed subfolders
You might also want to use + in place of * to catch a minimum of 1 character, ensuring that your conditions will work in different orders, just in case you move things around or add new rules in future.
If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
The same applies to HTML and the forums [HTML][/HTML] tags.
Bookmarks