SEO Friendly URLs in WordPress

811 views

Published on

Learn how-to change WordPress URL structure to make them SEO friendly URLs.

Published in: Internet, Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
811
On SlideShare
0
From Embeds
0
Number of Embeds
15
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

SEO Friendly URLs in WordPress

  1. 1. SEO Friendly URLs in WordPress By Brandon Himpfen
  2. 2. The Problem  By default, WordPress URLs look like this: http://yourwebsite.com/?p=3  As you can see, WordPress uses web URLs which have question marks and lots of numbers in them.  By having SEO friend URLs, you will have a higher chance of ranking higher in Google and other search engines.  This is because you are replacing the question mark and numbers with keywords, which WordPress refers to as tags. Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen
  3. 3. Requirements  Your server will have to have one of the following for SEO friendly URLs to work: Apache web server with the mod_rewrite module; Microsoft IIS 7+ web server with the URL Rewrite 1.1+ module and PHP 5 running as FastCGI; Microsoft IIS 6+ using ASAPI_Rewrite; Microsoft IIS 6+ using Ionic ISAPI Rewriting Filter (IIRF); or Lighttpd using a 404 handler or mod_rewrite. Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen
  4. 4. Requirements (cont’d)  In addition, you will need to: 1. Have FollowSymLinks option enabled; 2. FileInfo directives allowed; and 3. An .htaccess file (which you can create or WordPress has the ability to create one). Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen
  5. 5. How-to Create SEO Friendly URLs 1. Go to the WordPress login page and login. 2. On the left side menu, look for “Settings.” 3. A drop down menu will appear and then look for and click on “Permalinks.” Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen
  6. 6. Permalink Settings  You’ll be taken to a page that looks like this: Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen
  7. 7. Permalink Settings (cont’d)  You will change the post and page URL structure under “Common Settings.”  Under “Common Settings” you can pick a pre-made URL structure.  The “Custom Structure” setting will allow you to make your own URL structure by using one or more tags. Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen
  8. 8. Tags You Can Use  Here are the tags you can use to create your custom URL structure: 1. %year% – The year of the post, four digits, for example 2004. 2. %monthnum% – Month of the year, for example 05. 3. %day% – Day of the month, for example 28. 4. %hour% – Hour of the day, for example 15. 5. %minute% – Minute of the hour, for example 43. Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen
  9. 9. Tags You Can Use (cont’d) 6. %second% – Second of the minute, for example 33. 7. %postname% – A sanitized version of the title of the post (post slug field on Edit Post/Page panel). So This Is A Great Post! becomes this-is-a-great-post in the URL. 8. %post_id% – The unique ID # of the post, for example 423. 9. %category% – A sanitized version of the category name (category slug field on New/Edit Category panel). Nested sub-categories appear as nested directories in the URI. 10. %author% – A sanitized version of the author name. Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen
  10. 10. Category and Tag Custom Structures  Under “Optional,” you can enter custom structures for your category and tag URLs  All you have to do is add a single word or words separate by dashes to the text boxes.  For example, using topics as your category base would make your category URLs look like this: http://yourwebsite.com/topics/category/ Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen
  11. 11. The .htaccess File  WordPress should be able to create the .htaccess file for you, but if it can’t, create the .htaccess file with the following contents: Brandon Himpfen • Website: http://himpfen.com/ • Twitter: @brandonhimpfen # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteRule ^login/?$ /wp-login.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
  12. 12. The End I hope you enjoyed this presentation!

×