• http://example.org/mypage/foo/bar/…

    Where “mypage” is a static page, “foo” and “bar” are strings that may vary.

    Do I have a confirmation on the fact that is not possibile to use such a variable strings after tha page name? I get a 404 when I try to o so.

    At max I could use mypage/?foo=bar ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • In WP with pretty permalinks http://example.org/mypage/foo/bar would equate to a page called Bar that is a child of Foo, which in turn is a child of Mypage.

    mypage/?foo=bar is simply going to load Mypage.

    Sorry I can’t offer anything more constructive other than confirm that neither of the above approaches would work. Have you thought of using sessions to store your variables?

    Thread Starter paamayim

    (@paamayim)

    First, thanks for answering.

    I don’t like sessions very much and they don’t fit the pourpose.

    The page I’m building would be a custom search over some custom content and I’d like later to list recent searches and link them as “mypage/search-text1”, “mypage/search-text2”. While I could go for GETs for the actual search, like WP does (?s=…), it’s not much appealing in terms of seo using GETs in links 🙁

    If I’m not wrong, the only permitted case is when /mypage/page/x is used

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘example.org/mypage/foo/bar/…’ is closed to new replies.