What Is Permalinks In WordPress?

What Is Permalinks In WordPress?

Permalinks are the permanent URLs of your individual weblog posts, as well as categories and other lists of weblog postings. A permalink is what another weblogger uses to link to your article (or section), or how you might send a link to your story in an e-mail message. The URL to each post should be permanent, and never change, hence it is called as a permalink.

Permalink Types

There are basically three types of permalink

  • Default permalinks – It looks like:

http://example.com/?p=N

where N is the Post ID number. It works on all server environments, but it doesn’t look as nice as some of the other options.

  • Mod_rewrite – Using mod_rewrite or also called as Lighttpd you can produce much nicer permalink. There are many different formats, but the most common, and most versatile looks like

http://example.com/2012/post-name/

or

http://example.com/2012/12/30/post-name

  • PATHINFO

These permalinks look very much like mod_rewrite permalinks but for one exception, they have /index.php inserted before them, like so:

http://example.com/index.php/yyyy/mm/dd/post-name/

Otherwise, they are same as the “pretty” mod_rewrite permalinks and are similarly flexible. Anything that mod_rewrite permalinks can do, PATHINFO permalinks can do, with the help of that/index.php part.

Permalink Structure

In the Settings go to the Permalinks screen, you can choose one of the more common permalink structures or enter your own in the “Custom structure” field using the structure tag.

Remember don’t put your site URL in the permalinks fields. You only use one of the structure tags or a combination of tags.

To activate PATHINFO permalinks, start your permalink structure with index.php/.

Why permalinks in WordPress are important?

Basically, it’s through permalinks that the world identifies the individual pieces of content on your WordPress blog

For instance:

  • Anyone can easily understand the individual portion of your WordPress blog anywhere in the world.
  • If another blogger wants to link to your content, then he only needs your permalink to do so.
  • Permalink is very useful, as if you wish to share your blog on social media sites like facebook, twitter etc, then you use your permalink to do this.
  • Google also wants permalink of your content for indexing.
  • And also if you wish to show your content to your friend by an email, then you share your permalink to your friend inside the email.

The problem with permalinks in WordPress

It is the default permalink setting – the one that WordPress comes preinstalled with isn’t well optimized.

If you go to your wp-admin/Settings/Permalinks after installing WordPress, you’ll see this:

The default permalink structure is:

http://www.YOURSITE.com/?p=123

where “123” is the ID of a given post or page in the database.



Leave a Reply

Call Now