I'm working on a mod_rewrite hack for phpWS, but I need to hear your
opinions on what delimiter to use...
Let's say we have a url:
http://www.mysite.com/module/article/view/31.html
That is equal to:
http://www.mysite.com/index.php?module=article&view=31
I run into a problem because the links that come back on the new page
treat the url like a full directory listing, giving links like:
http://www.mysite.com/module/article/view/index.php?module=fatcat
which of course breaks the themes and any images to be shown!
It looks like only ways to get around this is to either (1) hardcode all
links throughout the site, or (2) use the proxy module, which I'm not
sure is a feasible option for most of us. The last option is to make
everything above the directory structure look like 1 file, which means
changing the delimiter. I've tried it with periods, like:
http://www.mysite.com/module.article.view.31.html
but a future module could put a period inside of a GET variable and
break the whole thing! So I need something else. I've also considered
using "..", "::", and "~", but I don't know which is more readable or
may cause search engine or url problems down the road.
Anyone have any suggestions?
http://www.mysite.com/module.fatcat.fatcat[user].viewCategory.fatcat_id.16.module_title.article.html
|