8 replies
  • WEB DESIGN
  • |
I would like to change my permalinks from:
blog.domain.tld/2009/12/31/postname/
to only:
blog.domain.tld/postname/

It is easy to do in WP's permalink settings,
but the links will become dead all over the net.

I need a .htaccess rewrite to lead people to the right blog entry
and I hoped someone already had a solution to this.

Thanks in advance.
#change #permalinks
  • {{ DiscussionBoard.errors[1565629].message }}
  • Profile picture of the author DarrenHill
    Hi HomeBizNizz

    I believe the code for .htaccess is as follows:

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    if your wordpress install is in a sub-directory then you need to use this one

    Code:
    RewriteEngine On
    RewriteBase /sub-directory/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /sub-directory/index.php [L]
    change sub-directory to whichever one you have it in

    I hope this helps ... I'm not the best when it comes to .htaccess

    Darren
    {{ DiscussionBoard.errors[1566951].message }}
  • Profile picture of the author PyrogenicMedia
    Download "Deans Permalink Redirection". Solves these sorts of problems. Pretty sure you can get it through the wordpress backend aswell (Isnt some rogue plugin).
    Signature

    {{ DiscussionBoard.errors[1567330].message }}
  • Profile picture of the author HomeBizNizz
    Originally Posted by pjCheviot View Post

    Fixed now... :p
    But, thanks for the tips.
    {{ DiscussionBoard.errors[1568832].message }}
    • Profile picture of the author pjCheviot
      Banned
      Originally Posted by HomeBizNizz View Post

      Fixed now... :p
      But, thanks for the tips.
      Just out of curiosity - how did you fix it?

      Cheers.
      {{ DiscussionBoard.errors[1568967].message }}
      • Profile picture of the author HomeBizNizz
        Originally Posted by pjCheviot View Post

        Just out of curiosity - how did you fix it?

        Cheers.
        Install the plugin and activate it.
        Go to permalinks settings.
        Above at the top you'll see some new links.
        Go to Migration

        Old: /%year%/%monthnum%/%day%/%postname%/
        New: /%postname%/

        Remember to change it to: /%postname%/ in ordinary settings too.
        {{ DiscussionBoard.errors[1603184].message }}
  • Profile picture of the author mattalways
    I had a blog that had this so I just updated anyways and the old URL's still worked to the posts...
    Signature

    Quit wasting your money! If you need a website, get me to do it right! I'll probably even do it for less! Design/Development/Software, I'm your guy! matt@snidge.com
    {{ DiscussionBoard.errors[1603580].message }}

Trending Topics