Support » Fixing WordPress » htaccess redirect?

Viewing 2 replies - 1 through 2 (of 2 total)
  • As you can see a redirect hooks the query to the end of the link; to override it slip an empty query (? with nothing else) onto the end of the ‘direct to’ url:

    Redirect permanent /archives/2005/07/05/oldname/

    Will look a bit strange, but it works.

    Another option is to eschew .htaccess entirely and stick a “redirect” in the index.php of your blog’s root. In the php tag you’ll find there, just above the require line (for wp-blog-header.php), insert:

    if(isset($_GET['name']) && $_GET['name'] == 'oldname') {

    thanks Kafkaesqui…i knew someone on here would know!
    i went for the empty query ‘fix’ and all works as it should.
    thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htaccess redirect?’ is closed to new replies.