WordPress.org

Ready to get started?Download WordPress

Forums

Is this permalink structure possible? (8 posts)

  1. Chorstikus
    Member
    Posted 2 years ago #

    Hey everyone,
    I have got a questen about a special permalink structure.
    Is it possible to have something like this:
    "[domain].de/index.php?page=[%postname%]"
    Because I want to move content from a webpage to an wordpress backend and the existing content got a good google ranking.
    Best regards.

  2. Yes, but you can do something EVEN COOLER.

    Make your permalinks %postname% so your URLs will be domain.de/postname (that looks cool, right?)

    THEN go into your .htaccess and above the lines for #BEGIN WORDPRESS put in this

    RewriteRule ^index.php?page=(.*) http://domain.de/$1 [L,R=301]

    Now [domain].de/index.php?page=[%postname%] will redirect :)

  3. Chorstikus
    Member
    Posted 2 years ago #

    I know this :)
    But then i'll lose the Google ranking.

    Yes, but you can do something EVEN COOLER.

    So my question is how do i do this?

  4. lonniea
    Member
    Posted 2 years ago #

    Wha......

    Let me see if i understand this 100%. Are you saying that i can put my old content (*.html) written in the year 2002 to appear as a blog post like this.... mydomain.com/%postname% ?

    As i have an aged domain with loads of content and would love to have it all on the blog platform. (but man... a lot of work) At the moment i've merely added a link to the old site.

    So my eyes are WIDE open here. lol

  5. lonniea
    Member
    Posted 2 years ago #

    @Chorstikus - no it wont hurt your rankings as this is merely a redirect as 301. and google doesnt mind that at all. if i'm understanding this correctly.

  6. Chorstikus
    Member
    Posted 2 years ago #

    @Chorstikus - no it wont hurt your rankings as this is merely a redirect as 301. and google doesnt mind that at all. if i'm understanding this correctly.

    Yeah you are right. I just don't get it earlier.
    I thought it has to be the same url structure. :)

  7. Nope, as long as it redirects, you don't lose your Google ranks :)

    301 redirects are super cool awesome sauce because it lets you keep your ranking, AND have uber simple, pretty URLs :)

    The trick, and yes there is one, is that the 'postname' you redirect FROM has to be the same you redirect TO.

    I use this a lot of the time when changing permalinks from domain.com/YYYY/MM/DD/postname to just domain.com/postname -- or in my case, domain.com/YYYY/postname, since I think people like years). And WordPress is even extra cool because if I go to domain.com/postname it, on it's own, will go 'Oh you mean domain.com/YYYY/postname! Here you go!'

  8. lonniea
    Member
    Posted 2 years ago #

    yes... wow that is cool.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags