The technical answer to this is to put an .htaccess
file inside your wp-admin
folder with this code:
# Remove .php from pages so you can use /wp-admin/edit
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
# Use /wp-admin/addnewpost
RewriteRule addnewpost post-new.php
The practical answer is that this is completely horrible, involves making sure your Apache server parses .htaccess
below root, and won’t remove the extension from the links in admin so you’ll still see /wp-admin/post-new.php
when you click a link to create a new post.
Above all else, it breaks the way WordPress Admin is intended to be used, and is a BAD IDEA. Please don’t do it.
Related Posts:
- How do you create a “virtual” page in WordPress
- Rewrite rules not working in WordPress
- How to add custom rewrite rule to .htaccess?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Preserving $_GET parameter while using custom Rewrite Rule
- Taxonomy rewrite question
- Why does wordpress still strip my query var?
- When to call `add_rewrite_rule` for safety
- Getting add_rewrite_rule and add_rewrite_tag to work
- Rewrite rules goes away
- Rewrite Rule for Custom Page with Query Vars in URL
- Dynamic URL, not a physical page within the database
- Rewrite Rule for Post “Subpage”, with pagination
- Need to make a php file inside theme accessible via url
- WP Rewrite the last two parts of the URL
- Rewrite loading custom template file but is_home() returns true, and there’s no 404
- Nginx rewrite rule conflict with WordPress permalinks rule
- Access $_POST data after redirect
- Change Query String to pretty permalink
- add_rewrite_rule not working for language specific characters
- How to add a custom redirect rule for subdomains?
- Custom rewrite rule
- How to do Basic URL Rewrite Without Redirecting
- Is it possible to remove feeds from rewrites?
- URL Rewrite doesn’t work for nested pages
- Flush Rewrite Rules on init or rest_api_init?
- Rewrite URL – insert custom variables as a directory path
- How to properly rewrite url by custom var
- Can’t add external rewrites
- url rewrite parsing a custom url parameter not working
- How to add custom variable in url without redirect?
- Using category slug in add_rewrite rule
- add_rewrite_rule ignoring other params than the “p” param
- Url Rewriting a dynamic wordpress page
- How to catch Rewrite rules then display a specific post?
- Adding two rewrite rules
- Load an url with minimal/no DB queries
- Monkey Man Rewrite Analyzer says my rule will trigger but it doesn’t [closed]
- .htaccess rewrite
- Auto generate rewrite rules for multiple taxonomies
- Help with Rewrite Rule for Custom Post Type with Query String
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- URL Rewriting for PHP script on an image URL
- Create Dynamic SEO Friendly URL for Virtual Page
- add_rewrite_rule with query variables
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- Rewrite query string to path
- Rewrite API -Adding a parameter before the slug
- Help with rewrite rules for two post types
- Multiple query vars sorting combination and url rewrite
- WordPress keeps writing rewrite rules to .htaccess
- Rewrites rules disappear after a while
- Adding a rewrite rule to page that has no fixed variables and pagination
- Flush rewrite rules on option update with Settings API
- Requested URL changes when using custom rewrite rule
- Localize URL bases
- Redirect old query string urls to new SEO urls
- Bilingual WP site: How to achieve different URL sturcture rule based on its language?
- How can I create custom URL routes?
- Create custom url which executes code (not render render a WordPress entity)?
- Rewrite author URL to example.com/u/{user_id}/{username}/
- Rewrite specific action url
- Using URL rewrite to add custom URL for custom post type
- WordPress simple Url Rewrite
- Rewriting in wordpress url
- How to change the displayed URL?
- Why is a rewrite rule in wordpress prevent pagination?
- Rewrite custom taxonomy slug – but only parent items
- wordpress path generation from rewrite rule
- add_rewrite_rule() issue with parent/child/child page
- Rewrite WordPress Url from root to subfolder without moving files
- Rewrite only if no other matching page is found
- Ugly URLs when there’s pagination
- How do I rewrite URL that has custom parameter
- URL rewrite problem in WordPress plugin
- Why is there a 404 on page 2+ for my search page?
- Usw add_rewrite_rule to display frontpage on specific page
- Rewrite rule for post as a child of a CPT
- “SAVE PERMALINKS” does more than FLUSH_REWRITE_RULES?
- URL Rewrite and Archive Template Files – Post Type vs. Taxonomy
- Rewriting URL with child pages
- Pagination appearing twice in URL after rewrite
- Rewrite rules goes away
- .htaccess RewriteBase equivalent for WordPress – Passing a URL as a variable without getting a 404
- URL Rewrite for CPT single posts
- Rewrite URL based on form input
- Rewriting WordPress URLs
- What is the proper way to use add_rewrite_rule to remove the (question mark)?
- Custom Rewrite Problem
- WordPress post-type create url rewriting
- help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]
- Can’t get pretty permalinks to work without index.php
- Programmatically add a custom url route “/category/index.json” to return a collection of posts in json
- Rewrite rule to simulate page hierarchy results in 404
- Rewrite URLs in a Custom Post Type with Multiple Taxonomies
- Rewrite rule giving 404 error
- add_rewrite_rule not working with custom variables
- WordPress picks a wrong template if ?cat= is used as URL parameter
- WP-Include rewrite directory
- How to combine nearly identical custom rewrite rules for WordPress