I've written my own MVC framework in PHP, which uses urls in the format of:
/controller/method/param1/param2/param...
I've made it so that "default" methods can be ignored (by default index()
), so this results in URLs like /controller//param1/param2/param...
. For example, a URL of: /view//panel-glide/3
will call index('panel-glide', 3)
in the view
controller.
This works fine and dandy, but I'm concerned that search engines or some older browsers might freak out when they see the double slashes, as I don't think I've actually seem them ever be used before.
Is anyone aware of any issues I might come across by using this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…