see thats what I thought as well, but nope, it gives me a 500.
Just to make sure I have it clear. The leading slash not actually matchable right?
http://www.site.com/abc/lkasdkad.php ^not part of the path to be check for matching right?
so i tried a few things.
RewriteRule ^(.*)/$ /index.php?id=$1[L,NC]
works for only the url like:
http://www.site.com/abc/but if I add that question mark after the slash, match 0-1, then i get 500 for any URL.
RewriteRule ^(.*)/?$ /index.php?id=$1[L,NC]
so what I think is happening is a recursive loop. because of the /?
what happens then is the redirect sends the user to the next URL, which is processed again by the same htaccess, which matches either a slash on the end or not. which means, it will always match... lol
but yet, that is what I need it to do, match a slash and do 1 thing, match no slash and do another, or if it ends in a filename or querystring do a third thing.
the querystring step i think I can manage by just matching for a ? in the URL. but its the slash or no slash that is fucking me up.