Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.