WordPress.org

Ready to get started?Download WordPress

Forums

how to use querystring with permalinks ? (4 posts)

  1. Flegme
    Member
    Posted 8 years ago #

    Hi all,

    i've got a problem in my web hosting provider (Free, in France) they don't permit rewrite rules so i use the following syntax in my permalink structure : /index.php/%year%/%monthnum%/%day%/%postname%/
    and that's works fine...
    My problem is that i need to transmit and treat a querystring keeping my context page (i want to offer to user the possibility to vote for a specific poll reloading the same page where they came from).
    What kind of "hack" can i use for that particular case ?

    I try with no luck all the syntax bellow :
    http://mywebsite/index.php/2005/11/10/mypost/?Vote=26
    http://mywebsite/index.php/2005/11/10/mypost?Vote=26
    give me 404 error...
    http://mywebsite?Vote=26/index.php/2005/11/10/mypost/
    translate by wordpress to http://mywebsite/?Vote=26/index.php/2005/11/10/mypost/
    and loading the front page... and
    http://mywebsite/index.php?Vote=26/2005/11/10/mypost/
    that's give me the same issue.

    Does someone knows how to do with that kind of problem ?

    TIA,

    Flegme

  2. lynk
    Member
    Posted 8 years ago #

    try

    m_ywebsite.org/index.php/2005/11/10/mypost/1/?Vote=26

    add /1/ add the end for "page 1". I have a script running like that with regular permalinks. might work for you as well.

  3. Flegme
    Member
    Posted 8 years ago #

    Thanks lynk, nice try ;) but the syntax you gave me doesn't work on my host provider...

  4. lynk
    Member
    Posted 8 years ago #

    you could work with POST instead of GET

Topic Closed

This topic has been closed to new replies.

About this Topic