URL Rewrite of Tag Warriors Plugin (8 posts)

  1. herold
    Posted 10 years ago #

    Anybody solved the problem of having the tags redirect for the Ultimate Tag Warrior plugin? It is suppost to change "tag/keyword" into "index.php?tag=keyword". Somehow it needs a .htaccess command to get it to work.

  2. hjl
    Posted 10 years ago #

    I have a temporary fix in place on a WP2.0 installation. I haven't had a chance to see if the 2.01 update fixes the URL rewrite problem.

    The discussion and fix are in the comments at Christine Davis' site:


    My writeup is here:


    I am running Ultimate Tag Warrior with this fix on this site:


  3. herold
    Posted 10 years ago #

    Hello hjl,

    Thank you for the tips. I put teh additional code into the .htaccess file but it does not work. I get 404 errors for each tag.

  4. hjl
    Posted 10 years ago #

    Hmm. Did you get the "RewriteEngine On" and also change the RewriteBase to something appropriate for your site? (i.e. not "/running")

  5. herold
    Posted 10 years ago #

    I put this code on top of my .htacess file:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^tag/?(.*)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?tag=$1&feed=$2 [QSA,L]
    RewriteRule ^tag/?(.*)/page/?(.*)/$ /index.php?tag=$1&paged=$2 [QSA,L]
    RewriteRule ^tag/?(.*)/$ /index.php?tag=$1 [QSA,L]
    RewriteRule ^tag/?(.*)/page/?(.*)$ /index.php?tag=$1&paged=$2 [QSA,L]
    RewriteRule ^tag/?(.*)$ /index.php?tag=$1 [QSA,L]

  6. hjl
    Posted 10 years ago #

    Are you sure your rewrites are working?

    In my .htaccess I put the temporary fix at the top, but without the RewriteCond. This means that it will ignore any existing file or directory that matches /tag or related paths, but it's just temporary.

    You might try inserting a rule to test whether rewrites are working, something like this:

    RewriteRule ^test-redirect$ http://someurl [R]

    which should bounce requests from http://mysite/test-redirect to http://someurl.

    I still haven't had a chance to look at the 2.01 update and any fixes for UTW, so this may all be moot.

  7. hjl
    Posted 10 years ago #

    FYI - I've installed 2.0.1 now, which fixes a permalink problem I've been seeing on my running blog, but it still needs the .htaccess hack to make Ultimate Tag Warrior's tag URLs work correctly.

  8. herold
    Posted 10 years ago #

    My rewriting is working as I have my feed redrected to feedburner. I see the rewrite code in my .htaccess file.

Topic Closed

This topic has been closed to new replies.

About this Topic