WordPress.org

Ready to get started?Download WordPress

Forums

URL Rewrite of Tag Warriors Plugin (8 posts)

  1. herold
    Member
    Posted 8 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
    Member
    Posted 8 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:

    http://www.neato.co.nz/archives/2006/01/03/ultimate-tag-warrior-29/#comments/

    My writeup is here:

    http://www.hojohnlee.com/hacks/2006/01/14/a-temporary-htaccess-rewrite-fix-for-ultimate-tag-warrior-and-wordpress-20/

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

    http://www.hojohnlee.com/running/

  3. herold
    Member
    Posted 8 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
    Member
    Posted 8 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
    Member
    Posted 8 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
    Member
    Posted 8 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
    Member
    Posted 8 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
    Member
    Posted 8 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

Tags