WordPress.org

Support

Support » How-To and Troubleshooting » Is this permalink structure possible?

Is this permalink structure possible?

  • Chorstikus
    Member

    @chorstikus

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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 🙂

    Chorstikus
    Member

    @chorstikus

    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?

    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

    @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.

    Chorstikus
    Member

    @chorstikus

    @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. 🙂

    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!’

    yes… wow that is cool.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Is this permalink structure possible?’ is closed to new replies.