doubledee — 2014-05-03T00:24:11-04:00 — #1
If I want to scrap my "Pretty URL" - for SEO reasons - and add a Query String to a URL instead, which of these would be the correct format...
Section = "Finance", Subsection = "Economy"
1.) w[B][/B]ww.debbie.com/finance/economy/3&sortname=by-date&sortdir=desc (From ScallioXTX [here](http://www.sitepoint.com/forums/showthread.php?1206682-Question-about-building-a-Pretty-URL&p=5657552&viewfull=1#post5657552)...)
jeff_mott — 2014-05-03T01:17:07-04:00 — #2
doubledee — 2014-05-03T10:18:39-04:00 — #3
Why do you say #5?
I would have voted for #4...
...because it follows the "directories end with a / and files and webpages end with nothing" convention that seems pretty well-established.
Would #4 even work as far as my mod_rewrite?
I can't even believe I'm considering taking the plunge and breaking my beautiful mod_rewrite for all of this SEO crap?! :rolleyes:
But, @ScallioXTX ; does seem to have some valid points, so I'm trying to come up with the best solution possible...
jeff_mott — 2014-05-03T13:15:23-04:00 — #4
I think page, sortname and sortdir work better as query string values rather than path segments because 1) they're all optional, and 2) their order doesn't matter.
None of these are actual directories, thought, correct? There's no such thing as finance/economy/index.php. But rather, finance/economy is itself the resource location. Keeping a trailing slash just for the illusion of a directory seems like unnecessary cruft to me.
Your rewrite would likely have to change. But it'll probably work out better this way. You won't have to worry about naming collisions between sort names such as "by-date" and article slugs.
doubledee — 2014-05-03T13:25:08-04:00 — #5
Oh, okay, good point!
Are you saying this for either #4 (my preference) or #5 (your preference)?
Or just for #5?
This whole thing has me freaked out and scared, but I want to push myself to think about things in different ways and come up with the best solution!
Looks like I have A LOT of work ahead of me rewriting all of my mod_rewrite and PHP code. (Such a bummer, because I was really proud of that mod_rewrite you helped me perfect!!) sigh