Optimal SEO Wordpress Permalink Structure for Your Blog
December 27th, 2007 - Written by Gyutae Park in SEOLearn more about Internet marketing strategy by subscribing to my RSS feed - free and updated daily!
If you’re creating a new blog using the Wordpress platform, it’s important to establish a permalink structure that is optimal for search engines and for users. So what is the optimal structure? There are many different views on this topic, but from my experience and SEO knowledge, using /%postname%.html is best. Below are some of the key reasons why you should be using this structure.
- Avoid using dates in your URLs
Many Wordpress blogs default to a structure which includes dates in subfolders. This ties your post to a specific point in time and limits your ability to update old posts. Also, the added subfolders may result in search engines placing less weight on your post and thus reducing the crawl rate. - Use relevant keywords
You want to include relevant keywords in the URLs of your blog posts to increase their ranking potential. Make use of the post slug to include 3 to 4 of the most important keywords. Be sure to take out stop words like “the”, “and”, and “or”. - Add .html file extension
When setting up your permalink structure, you want to add a file extension rather than using a subfolder. For example, /my-post.html is better than /my-post/. The former is considered 1-level higher than the latter and is given more weight by the search engines. The difference isn’t huge but every little bit counts in a competitive niche. Also, using the .html file extension is optimal because it signifies that the page is static. This will encourage search engine spiders to crawl the page more frequently. When setting up Winning the Web, I made the mistake of using .php. Because PHP files are dynamic pages that can be taxing for web servers, spiders may limit the frequency in which they crawl those pages. Using a static structure prevents this altogether.
If you have a well established site, it might not be worth risking your search engine rankings to change your permalink structure. However, if you have a brand new site or a growing site that needs help in terms of SEO, it might be worthwhile to implement the above recommended permalink structure.
Posted in SEORelated Posts:
Blog Audit Week 2 Winner - McBilly.com
4 Enhancements to Improve Your Blog’s Comments Section
Arkayne Review - Display Related Posts Around the Web
Easiest Way to Cloak Your Affiliate Links - Awesome New Wordpress Plugin














16 Responses to “Optimal SEO Wordpress Permalink Structure for Your Blog”
do not try this when you can’t get your .htacces to the right settings (read / write). It will screw your blog up, some hosts, mine included, do not support it.
I implemented the optimization, it worked fine and nothing was messed up. I hope it helps with SEO.
Thanks for the tip
Newbie question. Am I correct in assuming then, that the default setting for wordpress (http://site.com/?p=34) is not SEO friendly?
Also, when I switch to recommended structure, what will happen to all of my live links under /?p=34? Will they become dead or will Wordpress automatically redirect them for me?
Thank you.
Using a Linux server, you should be able to change setting for a .htaccess file.
@Oussama Messaoud
Great. Make sure that the old URLs are 301 redirecting to the new versions. This way all of the SEO value previously associated with your URLs are transferred over.
@ImageGag
Yes, you’re right. The default setting in Wordpress is NOT SEO-friendly. When you switch to the recommend version, they will most likely be broken. You can use this plugin to safely migrate your URLs: http://www.deanlee.cn/wordpress/permalinks-migration-plugin/
Just wonder why .html is better than a subfolder?
Excellent Gyutae.
I downloaded the Deanlee plugin and changed it to your recommended way:
/%postname%.html
Just tested an old link (?p=#) and it redirected perfectly. Thank you very much for the simple and concise info.
.html is better than a subfolder because the html file is 1 directory higher than with a subfolder. For example, site.com/index.html is better than site.com/index/. This is because the second version is actually site.com/index/index.html. Search engines tend to place more emphasis on pages that are higher up in the site’s structure.
@ImageGag
Great! Glad I could help you out.
there’s issue where IIS hosted server can’t support this feature. Is there any plugin to enable for IIS server?
Hi there,
I do see some valid points on your advise and some with which I can’t agree. For example not using dates in post, I do agree with that as it gives you the freedom to update that post in the near feature, as well as the fact that numbers in URL will decrease the keywords weight in-url.
But from another point, I don’t agree with the file extension call it .htm .html or .php will not make a big difference for search engine spider bots as long as the content is being parsed as x/HTML code which spider bots CAN crawl and read.
As for the post slug URL, it can make your life easier the SEO Slugs plugin (read more on seo plugin).
do you use wordpress for this site?
Thanks for the tips. I have been using /%postname%/ for a long while now but never thought to add the HTML to it. Seems to make sense.
Also never really knew what the post slugs were beyond being used by a few plugins lol. Might need to start using those heheh.
Whats your opinion on the various SEO plugins like “all in one seo”? It it good to use that in conjunction with the above tips or does it end up just negating the work?
The .html extension isn’t a huge advantage, but it can help to increase crawl rates for pages on your site. Since .php signifies that the page is dynamic, search engines may limit their crawls to prevent overworking the servers.
@scott
Yes, I use Wordpress for this site.
@DotDriven
Glad I could give you some useful tips. I personally use All in One SEO plugin and think it’s a must-have. Wordpress should really consider incorporating something like it in future releases. But of course if everyone uses it, then it would lose its competitive edge…
Hello and thank you for the useful post.
I have been reading for 2 days now documentation and tips for WP.I already set up the recommended permalinks. But i noticed that they don’t work in pages but just in posts.Is that supposed to be or i did something wrong?
I want to move my website to wordpress but i am afraid i will destroy everything.
General question:
Will deleting a post or page and re-adding it back after you changed the permalinks fix a broken link?
Should i permanent redirect my site to http://www. when i move to wordpress?
Thanks!
Very cool tip. I was looking for this kind of advice and, guess what, I found you link on Google ;]
And thanks for the plugin link, I think I’ll have to use it too
1 Trackback(s)