Support » Fixing WordPress » mod_rewrite?

  • I am moving from a site (non-wp) that uses /articles/article-name for all of its content.

    How can I get WP to redirect any /articles/ content to /. The articles have different file names and there are many of them, I don’t want to use a .htaccess file for all 200 articles.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you checked out Permalinks yet?

    Unfortunately that won’t work. The exact urls are /articles/article-name. I am trying not to break links when I change to WP.

    I tried:
    Redirect permanent /articles/
    That didn’t work
    I also tried:
    RewriteRule ^/articles/?$ [R=permanent,L]

    I could make a 401 that redirects all bad requests to the index page, but that is not a good solution.

    So… going back to Permalinks (check out that link), you can do custom permalinks.

    Like, say, enter /article/%postname% in the custom field.

    I’m probably missing the point, but why mess around in .htaccess if you can get a custom permalink style that is the same style?

    Sorry, I misunderstood. As I said I am new to Apache and wordpress.

    Thanks for the information, this will make life easier.

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