.htaccess Pagination Mod_Rewrite Issues

Discussion in 'Apache' started by Python, Mar 11, 2008.

  1. #1
    Currently I am using Mod_Rewrite and have the following rewrite rules:

    However I have now implemented pagination and need to define the current page via the URL. I want the following structures:

    main: DOMAIN.COM/tutorials/page-x
    viewing category: DOMAIN.COM/tutorials/category-name/page-x
    viewing sub-category: DOMAIN.COM/tutorials/category-name/subcat-name/page-x


    I tried using the following above (and tried it below) my existing rules above (have only tried it on the highest level):

    It doesnt work - It simply goes to tutorials_category.php?category=page-x

    Any ideas?

    Thanks
     
    Python, Mar 11, 2008 IP
  2. Python

    Python Well-Known Member

    Messages:
    680
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Never mind - I missed something out - SOLVED!
     
    Python, Mar 11, 2008 IP