Вывешено в:
603 взгляда
Пожалуйста примечание: Эта страница первоначально была написана на английском языке.
Первоначально столб можно осмотреть здесь.
Please note: This page was originally written in English.
The text has been translated using an online service such as Google or Babelfish.
The original post can be viewed here.
Всегда хотел изменить вашу структуру permalink Wordpress но был испуганн 404 ошибок и проблем SEO? Я имею Hack Wordpress для того чтобы зафиксировать все ваши проблемы правые здесь!
Это будет рассрочка #12 30 Hacks Wordpress в 30 днях!
Этот hack Wordpress одним я запланировал на сочинительстве пишу после последнее одного о поворачивающ и рециркулирующ столбы из ваших архивохранилищ и дальше к вашему home page. Главным образом потому что одна вещь я не адресовал перед, и то будет вами структура permalink. В Wordpress вашей структурой «permalink» будет ваш URL. традиционным Wordpress невыполнения обязательства blogs имеют день, месяц, структуру года к URL как это:
www.site.com/05/01/2008/my-new-post
В вашем dashboard Wordpress в или установках (WP 2.5) или вариантах (прежде чем WP 2.5) - > «Permalinks» вы имеете способность изменить структуру к вы хотите. В начале (потому что они не знают NIKAKое лучшее) большинств люди не делают и оставить невыполнение обязательства даты. Ровно Matt Cutts говорит не использует даты столба в URL. Почему не?
Hack #10 Wordpress должен быть основным примером - если вы идете рециркулировать ваши старые столбы к home page, то они идут изменить опубликованную дату к в настоящее время дню - правому? Наилучшим образом, оно не изменит permalink (URL) - и оно неподвижно отразит старую дату. Вы смогли изменить структуру permalink ручно в вашем dashboard, но то как раз создало бы новые URL для каждого одиночного столба (извлекая часть даты), поэтому каждый одиночный bookmark и каждое одиночное перечисление search engine, котор вы всегда имели теперь будет «страницой ″ ошибки 404. Ouch!
Излишек время если вы пишете новые столбы ежедневные или каждую неделю, котор вы вероятно не идете хотеть столб датирует для того чтобы иметь значение как очень, то, в виду того что новые читатели будут приходить на полностью времени. In addition - maybe you’ll want to move out of Wordpress to another blogging platform someday that doesn’t have a date based post convention. If you’re in the same boat I was, you are now in quite the predicament - what to do, what to do?? Once again, enter a lifesaver Wordpress plugin “Dean’s Permalink Migration!” It’s very simple to use, and will solve all your permalink problems.
First install and enable the plugin. Then in options or settings -> “PermalinksMigration” in your Wordpress dashboard you’ll see a simple text field for only one option:

All you have to do is enter your OLD permalinks structure in that field. For most of you that’s going to be:
/%year%/%monthnum%/%day%/%postname%/
What I did was open up two tabs in my browser, both with my WP dashboard open. In one tab I had settings -> Permalinks and the other settings -> “PermalinksMigration”. I just copied and pasted my “permalinks” structure to “permalinksMigration”. Then in “permalinks” I changed the structure from this:
/%year%/%monthnum%/%day%/%postname%/
to this:
/%postname%/
Then I click “update” to save each tab, one immediately after the other. To recap- what I’ve done here is removed the dates from my permalink (URL) structure, and the “Dean’s Permalink Migration” knows what my “old” structure was, and it will automatically redirect each and every page using old date based structure to the new page. You won’t lose any hits from bookmarks or search engines at all, and all of your URL’s will be much cleaner and shorter from now on.
The ONLY drawback I could think of was, this plugin only works ONE TIME. Since it only has one field for previous permalink structure to redirect - it can only redirect the last change you made. Hint to the plugin auther, you could hack this plugin to allow for multiple changes, and adding the ability to do the same for category permalinks would be a boon too!
Now I can just hear somebody screaming from the back of the room “what about my pagerank, what about my pagerank!”. In effect, to search engines, indexers, and crawlers this should be the same as a 301 permanent redirect. If you had pagerank assigned to any of your individual posts, it should transfer to the new URL over time - typically from a few weeks to a few months depending on google’s update schedule. I personally really don’t worry about pagerank anymore at all - you probably shouldn’t either.
I hope that this hack helped you as much as it helped me once found it. If you have any comments to make this post better, or question - please comment now!
Tags: permalinks, wordpress-hacks



















May 1st, 2008 at 3:32 pm
Nice hack, but as long as you are familiar with wordpress, it shouldn’t be an issue. Either that or for lazy people.
Shudogg Dot Com - Make Money Online Blogging
Make Money Online Bloggings last blog post..Adsense Secrets Volume 4
May 1st, 2008 at 6:00 pm
it doesn’t matter how familiar you are with Wordpress, if you change your Wordpress permalinks without this plugin you screw up all your search listings and anyone who clicks on one or uses a bookmark with get a 404 error. There is no convention in Wordpress to accomodate for changing permalink structure and redirecting the old URL’s to the new structure. It has nothing to do with being lazy.
If you were familiar with Wordpress, you’d know that when you make a comment, you don’t have to include a link back to your site in the comment, because you automatically get one at the top of your comment. Since I have CommentLuv installed you even get a link back to your last post in your RSS feed!
May 2nd, 2008 at 11:17 am
I’m happy I learned about permalinks before starting any WordPress sites!!!!
I dead a ton of reading on it. There are all kinds of opinions. I ended with domain/%postname%/ only. For the very reasons JT talks about. I didn’t want to end up having to redirect everything at some future point. The one knock I heard about this permalink structure is, it slows down the database?!?!?! I have no idea if that is true. The person stated it on a forum and insited that an ID must be put with it. Well, after viewing tons of WordPress sites that rank well I noticed they didn’t bother with the ID. . . maybe I’ll end up with a slow database. . . don’t know but I would think this issue would have been brought up to the WP programmers.
Charles
June 2nd, 2008 at 7:21 am
Quick question: When I change the permalink structure on my Wordpress 2.5 blog to /%category%/%postname%/, the old posts’ url doesn’t change. The links seem to all work, but the url stays the same. What am I missing?
DRs last blog post..Make Money Bloggingââ¬âSetting Up a WordPress Blog in 3 Easy Steps
June 2nd, 2008 at 8:12 pm
@DR - I’m not sure what you mean. You changed your permalink structure and the URL’s stayed the same - have you enabled the permalink migration plugin?