i would like to know what is the best option, im re-coding my own simple php framework, i used to have url lik this index.php?mod=gallery&id=1 then i implement mod_rewrite and this look like this gallery/1 but then i found out looking on MVC that you could use trailing slashes on the uri and forgot about GET params and treating url like this index.php/gallery/1.
But, i want to know which one is better to use. GET + Mod rewrite, or trailin slashes.
by the way using slashes on the uri i couldnt figure out how to use GET at the same time.
well let me know you experiences or advice.
Thanks.
Using trailing slashes is more portable – your application can easily run on other web server software, like Microsoft IIS, lighttpd, nginx.
On the other side, using mod_rewrite or equivalent makes your URLs prettier and shorter, and to use parameters from trailing slashes version like
GETarray, you have to implement your ownREQUEST_URIparser.