WordPress.org

Support

Support » Plugins and Hacks » [Resolved] URL rewrite with Ultimate Tag Warrior

[Resolved] URL rewrite with Ultimate Tag Warrior

  • divinewrite

    @divinewrite

    Sorry to bring this up again, but I’m having trouble with the URL rewrite – I’m getting the File Not Found error when I check the rewrite box.

    I’m using WordPress 1.5… My .htaccess file is writable. Permalinks are enabled and working. I’ve checked the “Use url rewriting” box in tag options, but .htaccess doesn’t change. I’ve tried playing around with the inserting the code listed at the UTW site directly into my .htaccess file, but can’t seem to get it to work.

    What should the code be? (Note that .htaccess already has a lot of code in it from the ‘friendly’ permalink url rewrite.)

    Any help would be greatly appreciated.

    Cheers.

Viewing 7 replies - 1 through 7 (of 7 total)
  • First best advice: upgrade to 2.0.4. After that, next best advice: for seriously specific UTW help, see Christine’s forum at http://www.neato.co.nz/forum/index.php?3

    divinewrite

    @divinewrite

    Thanks vkaryl,

    I’m using WordPress as supplied by my web host. Is it generally possible to upgrade in this sort of arrangement?

    cheers.

    Sure, as long as you have an ftp client, the latest distro, and your host doesn’t do stupid crap as regards your access to your site.

    [Edit: and if your host is supplying an outdated version of ANY php script these days, you need to start yelling. Or migrate to someone better. It’s YOUR data that’s at risk.]

    divinewrite

    @divinewrite

    Hi vkaryl,

    Thanks again for your help. I’ve upgraded, but still, when I click on a tag, I get Error 404 – Not Found. The code in the .htaccess file is as follows:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    # END WordPress

    divinewrite

    @divinewrite

    Problem solved. It was missing the following line:

    RewriteRule ^tag/(.+)$ /blog/index.php?tag=$1 [QSA,L]

    Thanks again for your help. I got the answer from the phorum you linked to.

    Cheers.

    That’s good! Glad you got it working/solved….

    Just to clarify: the extra line dealing with tags must come before the other rules, as shown here:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteRule ^tag/(.+)$ /index.php?tag=$1 [QSA,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    </IfModule>

    # END WordPress

    I kept putting the tag rule at the end and it wasn’t working. Now it works beautifully.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] URL rewrite with Ultimate Tag Warrior’ is closed to new replies.