Permalinks: WordPress URL Structure

Permalinks are URL for your blog or website’s posts, pages, categories and tags etc. This will be open by you or any other person to view your blog. Google and other search engine also indexed this URL. So for the SEO purpose it’s really an important factor for your blog.

The default WordPress permalink is hackly. It look like the below URL:

Where “p” denote the unique ID of your post or page. So 3 is your post or page ID. So when we call this through our browser it opens the particular page or post which you have passed through the parameter p.

But for the SEO, it’s not a good URL structure. They want good URL structure to attract the user and want URL more user friendly. So doesn’t worry WordPress have also these options and WordPress provides you 6 types of permalinks. You can choose anyone to set for your blog.


Basically WordPress doesn’t create directory structure for your SEO friendly URL Structure. It’s just create a .htaccess file on the root of your blog. So URL is not exists in real on your directory it’s just fake and some magical code through .htaccess file.

To set the permalink no need any programming skill. It’s just some click work in WordPress admin and URL will be set as you want.

Simply go into your Settings > Permalinks area and choose any setting other than the default and click “Save Changes.” If you received the following response message, you are all set:

Permalink structure updated.


If you didn’t get this message then you should create this manually and it’s not a hard work. Just create a file .htaccess on the root of your blog and just paste the below code in that file. It will work.

# BEGIN WordPress

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

# END WordPress