WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My blog uses the /?p=378 permalink structure for some years. This isn't very helpful with Google Analytics, and I would like to change it to the YEAR/MONTH/DAY/post-title structure.

Is there a way to do this without losing backward compatability, so that old link will work?

share|improve this question
up vote 1 down vote accepted

The old link (?p=378) will always work, and it will redirect to the "pretty" permalink.

share|improve this answer

Like Devin said, the old link will always work and it will be redirected to the new link automatically by WordPress. Just make sure, that your .htaccess file is writable. Plus WordPress writes a reference to the short link in to the header section like this:

<link rel='shortlink' href='http://yoursite.com/?p=378' />
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.