Support » Fixing WordPress » using mod rewrite to redirect from old url structure

  • I’ve moved my blog from a handrolled CMS to wordpress, and everything has gone smoothly except redirecting old URL’s.

    I’ve searched the forums (and google) for an answer but haven’t found anything that works, so now I’m asking here.

    It would be virtually impossible to map my old URL structure onto wordpresses, so all I want to do is redirect any URLs which point to the old directory to my achives page.

    I’ve got the following code in my .htaccess file

    RewriteEngine On
    RewriteRule ^wotw/(.*)$ [R=301,L]
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    However, this doesn’t work and I get a wp 404 page.
    My rewrite rule works on a “normal” site, so it must be conflicting with the wordpress permalink rules. Does anybody have any advise on how to overcome this conflict?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I do not know why, but for me it looks like your server does not accept the Stop-Flag (L) and moves on with rewriting…

    hmm, I’ve tried adding NC and other flags but it still doesn’t work.

    If someone could post some code that they know works on their install then it would help me track down if it’s a server config problem.

    My host is a Media Temple Gridserver if that makes any difference.

    I also host on the grid server and have had the same problem in the last week. I suspect it has something to do with wordpress permalinks, since I got it to work on another wordpres blog on the gridserver but permalinks were off. Did you ever find a solution to this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘using mod rewrite to redirect from old url structure’ is closed to new replies.