My First Heading
My first paragraph.
- Courses
- Tutorials
- DSA
- Data Science
- Web Tech
- PHP Tutorial
- WP Tutorial
- WP Interview Questions
- WP Installation
- WP Settings
- WP Categories
- WP Tags
- WP Posts
- WP Pages
- WP Media
- WP Links
- WP Comments
- WP Users
- WP Theme
- WP Plugins
- WP Projects
WordPress Permalink Setting
Last Updated : 05 Sep, 2024
Permalinks, or permanent links, are the URLs used to link to your content in WordPress. They help in making your content structured and accessed by users and search engines. You can navigate to WordPress permalink settings by going to Dashboard -> Settings -> Permalink. It looks something like the picture below. ( my WordPress installation directory is WordPress on localhost).
What Are Permalinks?
Permalinks are the permanent web addresses used to link to your posts, pages, categories, and other content on your WordPress site. They are designed to remain unchanged over time, providing a stable and consistent URL structure even if the content is updated. A well-structured permalink is not only user-friendly but also search-engine-friendly, which can positively impact your site’s visibility.
How to Configure Permalinks in WordPress
Step 1: Accessing Permalink Settings
- Log in to your WordPress dashboard.
- Go to Settings > Permalinks.
Step 2: Choosing a Permalink Structure
WordPress offers several default permalink structures. Here’s a breakdown of each:
- Plain:
https://example.com/?p=123
- Day and name:
https://example.com/2024/07/11/sample-post/
- Month and name:
https://example.com/2024/07/sample-post/
- Numeric:
https://example.com/archives/123
- Post name:
https://example.com/sample-post/
- Custom Structure: Create a personalized structure using available tags.
Recommended Permalink Structure
For most sites, the Post name option is the best choice. It keeps URLs short, descriptive, and easy to remember. For example:
Good: https://example.com/sample-post/
Bad: https://example.com/2024/07/11/sample-post/
Step 3: Setting a Custom Permalink Structure
If your website requires a unique URL format, you can create a custom structure using the following tags:
- %year%: Year of the post, four digits (e.g., 2024).
- %monthnum%: Month of the year (e.g., 07).
- %day%: Day of the month (e.g., 11).
- %hour%: Hour of the day (e.g., 15).
- %minute%: Minute of the hour (e.g., 43).
- %second%: Second of the minute (e.g., 33).
- %post_id%: Unique ID of the post (e.g., 123).
- %postname%: Post slug (e.g., sample-post).
- %category%: Category slug.
- %author%: Author name.
For example, you might use: /blog/%year%/%monthnum%/%postname%/
Step 4: Save Changes
After selecting or customizing your permalink structure, scroll down and click Save Changes. WordPress will automatically update your .htaccess file with the new settings.
Optional Permalink Settings
WordPress also provides optional settings to further customize your URLs:
- Category Base: This option allows you to change the base of your category URLs. For instance, if your default category URL is https://example.com/category-name/, adding a base like “books” would change it to https://example.com/books/category-name/.
- Tag Base: Similar to the category base, this option lets you customize the URL structure for your tags.
Want to be a Software Developer or a Working Professional looking to enhance your Software Development Skills? Then, master the concepts of Full-Stack Development. Our Full Stack Development – React and Node.js Course will help you achieve this quickly. Learn everything from Front-End to Back-End Development with hands-on Projects and real-world examples. This course enables you to build scalable, efficient, dynamic web applications that stand out. Ready to become an expert in Full-Stack? Enroll Now and Start Creating the Future!
Similar Reads
- WordPress Tutorial WordPress is one of the most popular and free open-source content management systems (CMS) that allows users to create and manage websites with ease. WordPress developed by Matt Mullenweg and it powers 43.4% of all websites on the internet. WordPress is known for its user-friendly interface, flexibi 9 min read
- WordPress Introduction WordPress is one of the most popular platforms for building websites, from simple blogs to complex e-commerce sites. WordPress is a user-friendly platform that empowers anyone to build and manage attractive websites. WordPress is a powerful tool that lets you create and manage the content on your we 4 min read
- Installation of WordPress on Windows If you want to build a website using WordPress on your Windows machine, you’re in the right place! WordPress is an open-source Content Management System (CMS) that allows you to create dynamic websites and blogs. Setting up WordPress on your Windows computer is a great way to create a local environm 4 min read
- How to Install WordPress on Your Website ? WordPress is a content management system that allows you to host and build websites. WordPress contains plugin architecture and a template system, so you can customize any website to fit your business, blog, portfolio, or online store. WordPress is well-known for its ease of installation. Installing 7 min read
- WordPress General Setting WordPress General Settings are basic configurations that control the main aspects of your website, such as the site title, tagline, URL, timezone, and language. These settings help define your site’s identity, manage how it appears to visitors, and ensure proper functionality across different region 4 min read
- WordPress Writing Setting The Writing Settings in WordPress offer a range of configurations that help you control your content creation and publishing experience. These settings are important for managing how you add and edit posts, pages, and other types of content, as well as for optimizing how your content is delivered to 5 min read
- WordPress Reading Setting In WordPress, the Reading Settings play a key role in shaping the user experience on your website. By configuring these settings effectively, you can customize how content is presented to visitors and optimize your site’s performance. This article will walk you through the Reading Settings in WordPr 4 min read
- WordPress Discussion Setting The WordPress Discussion Settings allow you to control how comments are managed and displayed on your site. In this article, we will explore how to navigate and configure the Discussion Settings in WordPress, helping you to manage your site’s comments and interactions effectively. What Are WordPress 5 min read
- WordPress Media Setting WordPress provides a dedicated section called Media Settings, allowing users to configure how media files, such as images and videos, are stored, displayed, and managed on their websites. Proper configuration of these settings can improve your website’s performance, optimize media for various uses, 4 min read
- WordPress Permalink Setting Permalinks, or permanent links, are the URLs used to link to your content in WordPress. They help in making your content structured and accessed by users and search engines. You can navigate to WordPress permalink settings by going to Dashboard -> Settings -> Permalink. It looks something like 2 min read
- WordPress Plugin Setting Setting up your WordPress plugins correctly makes your website run smoothly and efficiently. WordPress plugins are one of the most important parts of WordPress it is just like the apps on mobile phones which add extra functionality to your mobile phone like WordPress plugins add new and more feature 6 min read
Article Tags :
Corporate & Communications Address:- A-143, 9th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305) | Registered Address:- K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
- Company
- About Us
- Legal
- In Media
- Contact Us
- Advertise with us
- GFG Corporate Solution
- Placement Training Program
- GeeksforGeeks Community
- DSA
- Data Structures
- Algorithms
- DSA for Beginners
- Basic DSA Problems
- DSA Roadmap
- Top 100 DSA Interview Problems
- DSA Roadmap by Sandeep Jain
- All Cheat Sheets
- Data Science & ML
- Data Science With Python
- Data Science For Beginner
- Machine Learning
- ML Maths
- Data Visualisation
- Pandas
- NumPy
- NLP
- Deep Learning
- Python Tutorial
- Python Programming Examples
- Python Projects
- Python Tkinter
- Web Scraping
- OpenCV Tutorial
- Python Interview Question
- Django
- Computer Science
- Operating Systems
- Computer Network
- Database Management System
- Software Engineering
- Digital Logic Design
- Engineering Maths
- Software Development
- Software Testing
- System Design
- High Level Design
- Low Level Design
- UML Diagrams
- Interview Guide
- Design Patterns
- OOAD
- System Design Bootcamp
- Interview Questions
- Inteview Preparation
- Competitive Programming
- Top DS or Algo for CP
- Company-Wise Recruitment Process
- Company-Wise Preparation
- Aptitude Preparation
- Puzzles
- School Subjects
- Mathematics
- Physics
- Chemistry
- Biology
- Social Science
- English Grammar
- Commerce
- World GK
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy