Support » Fixing WordPress » Can I change category ID's to category name in URL's

  • Resolved Ashwani Sharma

    (@ashwani-sharma)


    there is a category with ID “3” and the name of this category is “news”. When I go to this category it show the URL “http://abc.com/?cat=3”. Can I change this URL to “http://abc.com/news” or something like this?

    Please let me know if there is any solution for this.

    Thanks in advance,
    Ashwani Sharma

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Ashwani,

    you have to set the links of your website.
    Login > (left sidebar) Settings > Permalink

    In the Permalink settings page, select the custom format.
    The url should look like
    http://www.abc/category/news.

    In the Permalink Settings page, you can change the term ‘category’ from something else (ex. ‘topic’, etc.).

    If you don’t want anything, then you can use the WP No Category Base plugin.

    Hope it helps!
    If so, please mark the thread as resolved.

    Thanks a lot its working.

    I’d like to mention an alternative technique, without any plugin installation but with a line in .htaccess. Source: Digimantra

    1. Connect to your website server using a FTP client.
    2. Take backup of your .htaccess file. Now open it in editor and append the following line –
    RewriteRule ^category/(.+)$ http://www.yourblog.com/$1 [R=301,L]

    3. Save the file and now you can access your category pages without category in the URL, such as http://yourblog.com/catname

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can I change category ID's to category name in URL's’ is closed to new replies.