Forums

Permalinks vs. Query Strings (4 posts)

  1. asianmack
    Member
    Posted 7 years ago #

    Right now I'm making use of the query string default setup (?cat=x, ?p=x, ?s=x, etc.) because I'm using lots of "if, else" statements using these variables to display certain things depending on the query string. I've seen some documentation on various WP sites that encourage people to use the Permalink structure (for search engines, easy linking, etc.) However, all my page display logic will be blown away if I go Permalink.

    What are the reasons why I should go with a Permalink structure instead of the query string? Any advice would be appreciated!

  2. James
    Happiness Engineer
    Posted 7 years ago #

    Query strings will function correctly when using permalinks. Basically, index.php?p=3 is still called, but it's displayed as /archives/2005/03/04/this-is-the-third-post/. The permalinks don't permanently replace your query string URLs, they just mask them thanks to the wonders of .htaccess and mod_rewrite. Give it a try, you'll like it.

  3. James
    Happiness Engineer
    Posted 7 years ago #

  4. asianmack
    Member
    Posted 7 years ago #

    Ah ha. Thank you macmanx. This helps a lot!

Topic Closed

This topic has been closed to new replies.

About this Topic