Have a look at the Permalink settings in the admin, you should be able to achieve what you want there. Here is a link to the Permalink Codex
something like /%post_id%
should do the job, if you select the ‘Custom Structure’ option.
Related Posts:
- How to create custom URL routes?
- Masking wp-content/themes/name/images to just images directory using htaccess
- How to change default page slug?
- Mod_rewrite delete parameter in 301 Redirect
- Sub domain redirection to taxonomy
- Need to make a php file inside theme accessible via url
- Evaluating a external rewrite rule before internal wordpress rewrite rule
- Using custom mod_rewrite without breaking wordpress permalinks
- Rewrite rule to load images from production does nothing
- Rewrite Rules Are Redirecting and Not Passing VARs
- WordPress rewrite rules don’t need ^?
- Adding rewrite rules directly to .htaccess file
- Custom rewrite not working
- WP is ignoring .htaccess rewritten URL
- a one-off rewrite rule
- Rewrite wp-login.php URLS to static pages?
- Need help with simple rewrite rule (shouldn’t this be easy?)
- Change htaccess to redirect to index.php in subfolder
- Rewrite custom post type URL parameters
- How to remove wordpress directory slash
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- URL Rewriting for PHP script on an image URL
- Change pagination url format
- How to redirect specific URL to Subdomain
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- How to rewrite wordpress urls with index.php in them
- Custom Rewrite rule to captured post (rewrite rule to rewrite rule)
- Map secondary domain to other’s virtual subfolder
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- Changing URL scheme, mod_rewrite not helping
- Localize URL bases
- How can I create custom URL routes?
- force www rewrite if wordpress put in a folder
- Rewriting a date hierarchy into a ‘yyyy-mm-dd’ slug
- How do I make WordPress revise an .htaccess file a certain way?
- modify URL with mod_rewrite or hook
- How to change an existing wordpress page rewrite rule?
- Pretty URL via Rewrite
- ModRewrite not working properly
- Custom Rewrite for Profiles
- help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]
- Can’t get pretty permalinks to work without index.php
- How to redirect a virtual page (e.g. /blog) to the home page?
- Please give me the rewrite rules for my ugly urls
- Add rewrite endpoint and .htaccess
- How do you create a “virtual” page in WordPress
- How to remove dates from existing permalinks?
- How to make a category page the blog home page?
- Taxonomy rewrite question
- Why did installing wordpress in url root jack up underlying WP sites?
- How do I create a dynamic page?
- Dynamic URL, not a physical page within the database
- Nginx rewrite rule conflict with WordPress permalinks rule
- URL Rewrite doesn’t work for nested pages
- WordPress Redirects When a Query String Contains a Number
- How to remove parent section from attachment URL?
- subdirectory install breaking existing links
- ReWriteRules and WordPress Multi-Sites with Sub Directories
- How to configure Multisite Network with randomized hostnames?
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- Taxonomy Pagination Rewrite
- Multiple query vars sorting combination and url rewrite
- WP Rewrite issue
- WordPress keeps writing rewrite rules to .htaccess
- Is it possible to match site root with a WP rewrite rule? [closed]
- How to rewrite AJAX call URL to admin-ajax.php to match REST style URLs
- Add parameter to URL
- WordPress rewrite rule not working
- Is WordPress API visible from PHP file called in htaccess
- Requested URL changes when using custom rewrite rule
- Insert post ID into the end of a slug preceeded by a dash
- Flushing rewrite rules
- Create custom url which executes code (not render render a WordPress entity)?
- Rewrite author URL to example.com/u/{user_id}/{username}/
- Overwrite WordPress’s URL rewrite not working
- 404 redirect based on url
- How to change the displayed URL?
- Get logged in username in wordpress url
- WordPress 3.1.2 Network Enabled non-www to www
- add_rewrite_rule() issue with parent/child/child page
- Point 404 pages to homepage
- Rewrite only if no other matching page is found
- Custom author url and page for another role
- Rewrite query var on postname
- “SAVE PERMALINKS” does more than FLUSH_REWRITE_RULES?
- Rewrite URL for attachments
- How to Rewrite the URL
- Pagination appearing twice in URL after rewrite
- Rewrite rules goes away
- Redirect if string found in URL
- Custom mod rewrite function not responding
- Rewrite custom taxonomy URL
- Simple URL rewriting gone wrong
- How to turn off searching from URL and go straight to 404 page
- Rewrite URL based on form input
- What is the proper way to use add_rewrite_rule to remove the (question mark)?
- Custom Rewrite Problem
- get parameter from url rewrite [closed]
- Generated URLs don’t reflect accurate URLs.
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?