WordPress.org

Ready to get started?Download WordPress

Forums

Custom URL Redirects (5 posts)

  1. russellgreenwood
    Member
    Posted 6 years ago #

    Hi there,

    I'm wondering the best way to do 2 things (which I'm sure can be solved with one thing)

    First off, I want to be able to pick custom url's like:

    http://mysite.com/some_custom_word/

    And have it redirect to any page I want on my site - regardless of what that page's slug is. Because sometimes I want the permalinks to have the category in the URL, but sometimes not, it's almost like using subdomains I guess, but I don't want to do that.

    Secondly, I want to be able to put in custom URL's of some of the previous version of the site's URLs to redirect to their new counterparts, but unfortunately the previous version of the site didn't have any real structure, so I just want to put in a few select important URLs to redirect eg.

    http://www.mysite.com/something/other/page1134c.asp

    and also pick which page/post that will redirect to.

    Any thoughts on how to do this / if there's a plugin (which if I find a non-plugin way to do this, I might write a plugin to do it because I think it would be mega-helpful) would be much appreciated.

  2. Adam Brown
    Member
    Posted 6 years ago #

    Maybe put the redirects into your .htaccess?

    Here's a mod_rewrite cheat sheet, if it helps.

  3. russellgreenwood
    Member
    Posted 6 years ago #

    Yeah, looking into mod_rewrite stuff, just seems like something WordPress could handle though...

  4. moshu
    Member
    Posted 6 years ago #

    WP can "handle" the nice permalinks of your present posts, Pages etc. - if you read the documentation (and visit your own admin panel). Using_Permalinks

  5. russellgreenwood
    Member
    Posted 6 years ago #

    I've read that - the problem is that the current site has no particular 'standard' for the folders etc. that information is in - hence wanting to be able to specify exact URLS and where they should redirect to...

    Is this something I would do maybe with a custom 404 page?

Topic Closed

This topic has been closed to new replies.

About this Topic