Support » How-To and Troubleshooting » Changing permalinks — .htaccess and RewriteRule?

Changing permalinks — .htaccess and RewriteRule?

  • I’d like to change my permalink structure from /archives/2005/11/25/post-name/ to simply /2005/11/25/post-name/

    What must I add to my .htaccess to have requests to the old ‘archives’ directory re-written to the permalinks without it?

Viewing 1 replies (of 1 total)
  • Moderator James Huff


    Add the following to your .htaccess file, all on one line with a space between the relative and absolute URLs, and adjust accordingly:

    Redirect permanent /blog/archives/ http://www.yourdomain.com/blog/

Viewing 1 replies (of 1 total)
  • The topic ‘Changing permalinks — .htaccess and RewriteRule?’ is closed to new replies.