Forums

page_id replaced with products-page (5 posts)

  1. jeyush
    Member
    Posted 2 years ago #

    I changed my permalinks settings and I get trouble.

    Previously my url was showing
    http://localhost/wordpress/?page_id=3&category=10

    And Now it showing
    http://localhost/wordpress/products-page?category=10

    So, I cannot access my pages.

    I am stuck with this, please help me out.

    Thanks in advance.

  2. viniciusandre
    Member
    Posted 2 years ago #

    What page is "?page_id=3&category=10"?
    What's the error, exactly?

    If it's a category, that's a wrong way of accessing category pages.

    If you changed the URLs to pretty permalinks, you must be sure to use the URL functions on all links in your theme. Like get_permalink() or get_category_link().

    Also, you must have mod_rewrite enabled in your server (check phpinfo() for that), and the .htaccess file in the root of your WordPress installation must have the required rules (see the permalinks option page, it gives you the .htaccess content if there's no server writing permission for the file).

  3. jeyush
    Member
    Posted 2 years ago #

    It's a products-page with page_id=3,

    Now the error is, I am not able to access my products-page,

    error-The requested URL /wordpress/products-page/po-campo1/ was not found on this server.

    waiting...

  4. jeyush
    Member
    Posted 2 years ago #

    I have permalinks set up.
    Before permalinks setup I have query string like this,

    http://localhost/wordpress/products-page?category=2&product_id=11

    And by changing it to permalinks to numeric,

    It shows ;
    http://localhost/wordpress/products-page/po-campo1/product-3

    There is
    po-campo1 is category
    product-3 is product in po-campo1 category.

    So, how can I get category_id and product_id at the top of the page?

    If you know that please share it with me, I really need it.

  5. viniciusandre
    Member
    Posted 2 years ago #

    Hi jeyush.

    That's confusing to me. Are you using a specific plugin or theme to generate such URL? I'm just stuck to help you too.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags