1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

.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