Forums

Problems passing /page/ to url (5 posts)

  1. Alexis.cps
    Member
    Posted 8 months ago #

    Hi everybody,

    When passing the page parameter (www.mydomain.com/news/page/2) i get redirected to index.php instead of paging. Paging works fine when i write http://www.mydomain.com/news/?page=2.

    I'm on MacOS 10.5.8 with Mamp Pro, if this helps.
    I also have permalnks enabled, and the designated .htaccess file.

    Can anybody point me to the right direction?

    Thank you,
    Alex.

  2. Christine
    Moderator
    Posted 8 months ago #

    It looks like your permalinks are set to the default. Maybe try switching them to the second or third option and see what that does.

  3. Alexis.cps
    Member
    Posted 8 months ago #

    Thank you for replying Christine,

    i tried it and there's absolutely no difference. if a add a variable of any kind after the page url i get redirected to index.php.

    news is a page, with the slug "news", and get handled from the page-news that loops and displays records of a custom type. But its not nearly getting to process the page as it gets redirected.

    Same with all my urls.

    i've tried every possible case i can imagine.

    Alex.

  4. Christine
    Moderator
    Posted 8 months ago #

    What do you mean when you say 'Same with all my urls.'

    Is this happening with your page, posts and are you using the menu builder to create your navigation.

    Pagination with custom post type is a wee bit tricky. Here are some threads that might help:

    http://wordpress.org/support/topic/pagination-with-custom-post-type-listing?replies=45

    http://wordpress.org/support/topic/pagination-for-custom-post-types?replies=40

  5. Alexis.cps
    Member
    Posted 8 months ago #

    Ok, lets take it from scratch.

    Pagination is working fine, as long as a pass the variable in a ?page=2 format.
    But lets not go there, lets say that i'm just retrieving the url variable, and displaying it.

    It gets displayed fine when in ?page=2 format but when i try to pass it in the /page/2 format it redirects me to index.php.

    When i say "all my urls" i mean it does the same thing with all my pages, be it page-news.php or category.php or anything you can imagine. If it detects a /some-variable/value/ pair after the url (www.domain.com/category/cars/page/2/) it fails.

    (www.domain.com/category/cars/?page=2) work fine. ..../news/?page-3/ etc work fine also.

    I just cannot pass any variable in the /variable-name/value/ format.

    Alex.

Reply

You must log in to post.

About this Topic