Pls help - pagination rewrite for wordpress plugin

Discussion in 'Apache' started by veedee, Nov 4, 2010.

  1. #1
    Hello
    I have just installed a tdo_tags fixes wordpress plugin (that was downloaded here: http://thedeadone.net/software/tdo-tag-fixes-wordpress-plugin/) it works like a charm except the paging features.
    It supports permalink to select a certain tag in certain category, and works with url below:

    http://mydomain.com/parentcategory?tdo_tags=tag1
    http://mydomain.com/parentcategory/tdo_tags/tag1
    http://mydomain.com/parentcategory/childcategory?tdo_tags=tag1
    http://mydomain.com/parentcategory/childcategory/tdo_tags/tag1

    but if the selected tags spans to more than one page, it only works with url below:
    http://mydomain.com/parentcategory/page/2?tdo_tags=tag1 (or page/3 .. page/4 etc)
    http://mydomain.com/parentcategory/childcategory/page/2?tdo_tags=tag1 (or page/3 .. page/4 etc)

    and it returns empty page ('Not Found') in:
    http://mydomain.com/parentcategory/tdo_tags/tag1/page/2
    http://mydomain.com/parentcategory/childcategory/tdo_tags/tag1/page/2

    So I need to rewrite page
    http://mydomain.com/parentcategory/tdo_tags/tag1/page/2 --> it accesses --> http://mydomain.com/parentcategory/tdo_tags/tag1/page/2
    http://mydomain.com/parentcategory/childcategory/tdo_tags/tag1/page/2 --> it acesses --> http://mydomain.com/parentcategory/childcategory/page/2?tdo_tags=tag1

    I have written the following rule in wordpress' .htaccess file
    RewriteRule /([^/.]+)/([^/.]+)/tdo_tags/([^/.]+)/page/([^/.]+)$ /$1/$2/page/$4?tdo_tags=$3
    Code (markup):
    but it just won't work

    help is really appreciated

    Thanks
     
    Last edited: Nov 4, 2010
    veedee, Nov 4, 2010 IP