Login to your WordPress Dashboard and Click Settings > Permalinks. Under Common Settings, Select Custom Structure and in the text field enter /%postname%/
Click Save Changes
The second step is creating an .htaccess file which is then uploaded into the root location of the WordPress site.
The .htaccess file will contain the below rules:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ /index.php/$1 [NC,L]
#for wordpress with a directory of blogs
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^wordpress/(.*)$ wordpress/index.php/$1 [NC,L]
Related Posts:
- Getting the Site URL Including the Front Base
- How to get rid of index.php?
- Getting links to work the same on development and production
- How to bulk edit image url in featured image and product description?
- Permalinks settings
- WordPress suddenly changed all links to example.com/example.com/
- home_url on IIS missing permalink index.php
- Permalink not changing according to post type
- Got 404 error when changed siteurl via DB in WordPress
- Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)
- My permalinks for all pages and posts now include old page titles as parents/categories
- Remove index.php from URL (WP installed in subdirectory)
- How to change URL of my pages?
- permalinks url with woocommerce
- Siteurl code for links
- Rewrite Rule for Multilingual Website, Like qTranslate?
- How to filter to output of the get_permalink() function
- Change slug on post creation
- WordPress Permalink changes to question mark (?) in URL
- Is there a user-facing interface to edit an attachment’s permalink?
- Can WordPress realistically handle a site with 500 ‘pages’?
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- How to get url of a post from admin panel
- Get post title with link
- WooCommerce permalinks [closed]
- CPT archive 404ing when using a custom taxonomy name as a variable
- Performance and styles not working fine after changing permalink structure
- Maintaining two permalink structures
- Can’t change permalink url after hitting ‘ok’ and ‘update’
- Rewrite user profile URL to be human friendly
- removing index.php IIS 7.5 webconfig
- Sub-category and category in permalink structure
- Permalinks Messed up
- Permalinks broken regularly
- 404 Page Not Found for Only One Post
- How to 301 all posts
- WordPress within specific sub-directories, implicitly not root
- Call to a member function add_rule() on a non-object
- Link to blog index from template
- How to change Post ID during import
- Permalink change made author archive vanished
- Debugging permalink issue
- WordPress 404 in development area
- Custom Permalink
- why some permalinks adding characters/ruining links
- Multiple taxonomies on same permalink rule [closed]
- WordPress category base not in post permalink
- What’s actually happening when permalinks for custom post types suddenly stop working
- Redirect a Blogger Page URL to wordpress
- How to prevent redirect when using the term “page” in query string?
- Edit page slug after save, cause 404 by linked pages
- How to add .html to the end of the permalink
- IIS 7 Rewrite with parent categories
- Separate link structure for specific posts (/blog/glossary in stead of just /blog)
- WordPress rewrite_rules_array rule not working properly
- Return value of get_permalink(0) and get_the_title(0)
- Custom function making troubles in get_permalink for ACF relationship fields
- Two URLs of one post is available
- Will adding 40,000 301 redirects slow down a site?
- Pagination url for page template
- I Need to use Month , year in my all archives and pages of my wordpress site
- How to add post meta to post permalink with still keeping a good performance?
- Update the permalinks in posts (not domain change)
- Page Navigation is not working with permalink structure
- Remove Parents From Permalink of Hierarchical Taxonomy
- Page URL not working due to physical directory
- Default Permalink Structure for Pages
- Gutenberg Editor: dynamically edit slug field based on ACF field
- Cannot Set Custom Permalinks for Multisite Post Migration
- Load-balanced site frequently losing permalink settings
- Problems fixing a REST API 404 after Moving my WordPress Directory and updating Permalink Structure
- Edit the output of a filter
- Custom Permalink Structure for The Events Calendar
- WP permalink working, but why content doesn’t display
- Redirect page to homepage, keeping URL
- Internal forward link with add_rewrite_rule
- Adding query string to multiple page urls in a WordPress function
- Change permalink structure with post id
- How to allow different authors to use same post slug?
- Updates all internal links on permalink update
- how to have same rewrite rules for 2 different post type?
- What permastrusture tags are generated out of the box right after creating custom post types and taxonomies?
- How can I add my own ‘read more’ or ‘after the jump’ type of link to the article page?
- Permalink Options does not change
- The permalink for the page doesn’t work and page’s defined link throws “Object not found!”
- How to change permalink structure and keep permalinks for old posts
- Pointing, two or more archived Blog posts to the same permalink (Single post page)
- WordPress search seems to look into permalink (which is bad)
- whats is the perfect configuration to .htaccess for permalinks?
- Is there a way to remove the option to modify the Slug in post.php
- Issues with WordPress permalinks
- Select page/template from the permalink url
- Permalink / sub-template issue
- Use shortlink as permalink
- Mystery ghost page not appearing in Admin
- Update permalinks after domain change
- Comparing permalink to url
- Lists Top Authors by Most Recent Posts
- My permalinks no longer have the “news” category prefix in the link and it’s causing 404 errors for articles published on the web