Go to your WP-ADMIN–>Settings–>Permalink and use the permalink structure change there, if it generate any .htaccess
file copy the content and update your .htaccess
file.
Or Check if your hosting mod_rewrite
is enable by creating a file phpinfo.php
with content,
<?php phpinfo();?>
Upload this file and browse via Browser. So you know which modules are enabled. You need mod_rewrite enable to remove index.php
from URL.
More details Check this link
Related Posts:
- “.#[random-char-string]” being inserted at end of URLs
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- flexible rewrite ‘ramble’ URLs with WordPress
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- How to Modify Existing Rewrite Rules?
- custom permalink/shortlink with base62 encoded post ID
- How to remove specific category from URL in WordPress
- mod-rewrite exception? keep #hash in matching urls?
- Getting back a permalink from custom url
- Access posts while mod_rewrite is broken
- Multiple Taxonomy Items for Separate URLs
- Using a template file for a specific custom URL
- a way to support totally different url structure
- Need help with add_rewrite_rule
- How to get pretty URLs with add_query_arg in permalinks
- Custom post type permalink endpoint
- How to remove dates from existing permalinks?
- How to add a custom URL placeholder to author archives?
- Update URL Snippet to Canonical Permalink URL
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- Pretty Permalinks
- How to create a permalink structure for posts in a specific category
- How to map permalinks with accented letters to sanitized slugs?
- Using two permalinks for one post
- Change the custom post type permalink
- Rewrite url / permalink for default archive – yearly / monthly
- Permalinks, Rewrites, Get Variables, Oh My!
- Change permalink for a single post entry
- rewrite_rule for custom post type doesn’t affect get_permalink
- Add ‘articles’ prefix before blog posts url without affecting pagination
- add new permalink structure from dynamic page
- When is it a good idea to build a permalink structure from scratch?
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- Call to a member function add_rule() on a non-object
- I need a custom permalink for my website
- How to reset canonical URLs / fix redirect loop
- Permalinks: Page Not Found
- Why is add_rewrite_endpoint incompatible with /%category%/%postname%/ permalink structure?
- Re-write specific custom post type category URL to go to another page
- Change blog segment of URL
- Remove custom taxonomy base from URL
- remove sub-category of Custom Post Type from permalink structure
- add_rewrite_rule not working for me
- Is a permastruct possible on pages?
- Using WP Rewrite, but just not “getting it”
- Rewrite rule for a query string
- Force wordpress to display page with same url structure as categories
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Rewrite custom post type URL parameters
- Change pagination url format
- How can i have a custom post type with more slugs for each post?
- Rewrite CPT permalinks and include WPML language
- URL rewriting: removing the site’s basename for a specific category
- Rewrite rule intended for CPTs gives 404 for pages
- Permalink structure between 2 custom post types and a taxonomy
- Create custom permalinks to show Custom Post Type’s relationship?
- Permalinks only for posts
- Custom rewrite rule ignored
- wordpress how to replace url /bar with foo/bar for custom post type
- Remove parent page from url
- Exclude single page from permalink rule
- Bulk append URL (add word to slug)
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- How can I set up a secondary permalink structure?
- Rewrite rule not passing variable
- How to Use metada Value in Url and is it possible? [duplicate]
- Safest way to create a custom permalink
- rewrite based slug standar post wp
- remove SLASH on single_post but KEEP on categories and parent pages
- WordPress keeps removing query var from the URL
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- Multiple URL rewrite rules and get every prams
- Extra url paths as variable
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- Passing parameter through permalink structure
- Redirect page to homepage, keeping URL
- Add slug to default post permalinks ONLY
- How can I put WordPress in a directory but keep just the home page at the domain root?
- how to have same rewrite rules for 2 different post type?
- Permalink structure /page/page/cpt-post gives 404 with pagination
- rebuilding/ rewriting a url to make it SEO friendly
- How to change the URL using rewrite rule in wordpress
- What permastrusture tags are generated out of the box right after creating custom post types and taxonomies?
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- Rewrite posts url as they’re all children of a page
- Multiple Permalink Patterns for one page
- Pretty Filter URL
- WordPress Pagination Custom Rewrite Rule for Pages
- How to change URL of my pages?
- rewrites and custom links in page need help with add_rewrite_rule
- Prevent guessing slug
- WordPress permalink still not working (error or not understood?)
- Only homepage working correctly, 404 error on everything else
- Custom Permalink Base
- WordPress custom permalinks, pages are now 404
- Include language variable in url
- how to create several url aliases for a page
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- Add additional URL variations for a Post
- Standard Htaccess directives disappear by themselves