WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] URL rewrite with Ultimate Tag Warrior (8 posts)

  1. divinewrite
    Member
    Posted 7 years ago #

    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.

  2. vkaryl
    Member
    Posted 7 years ago #

    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

  3. divinewrite
    Member
    Posted 7 years ago #

    Thanks vkaryl,

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

    cheers.

  4. vkaryl
    Member
    Posted 7 years ago #

    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.]

  5. divinewrite
    Member
    Posted 7 years ago #

    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

  6. divinewrite
    Member
    Posted 7 years ago #

    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.

  7. vkaryl
    Member
    Posted 7 years ago #

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

  8. Matt Wiebe
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic