Forums

Action Variables versus $_GET (4 posts)

  1. techguy
    Member
    Posted 1 year ago #

    I'm debating whether to use the WordPress action variables or just the regular old $_GET functions. Is there a reason I should use one versus the other? Here's an example of the 2 options:
    http://mydomain.com/page-slug/?group_id=1%26referring_user_id=1
    http://mydomain.com/page-slug/1/1

  2. Mark / t31os
    Moderator
    Posted 1 year ago #

    I'm not sure what the question is, both are essentially the same thing unless the second points to a real folder.

  3. techguy
    Member
    Posted 1 year ago #

    That's kind of the point of the question. They essentially accomplish the same thing. So, is there a reason why I should lean towards using one or the other?

    For example, it seems like using the first option is better since then you can just append variables as you please and if one is missing it doesn't matter. The second one has to have all the variables or you won't be referencing the right value.

    Any other things I should consider?

  4. Mark / t31os
    Moderator
    Posted 1 year ago #

    In my opinion the only advantage is the URL looking pretty and making the URLs easy to remember.

    Other than that i don't think url rewriting is all it's made out to be, at least not as important as all these SEO type people say..

    Of course, i'm entitled to my opinion, and others may see things very differently to how i do.

    It's really for you to decide though, i personally like using url rewriting, i prefer the easy to remember URLs... :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.