There is a simple solution for this. Add this code to your theme’s functions.php
. After that you need to re-save your permalinks from Settings->Permalinks
in WordPress dashboard.
function remove_author_base() {
/**
* Remove Author base from Wp Links
* Serkan Algur
*/
global $wp_rewrite;
$wp_rewrite->author_base="";
}
add_action('init', 'remove_author_base', 1);
I tested this code on my localhost (apache server with htaccess enabled). Please comment if code works or not.
Related Posts:
- Use a template file for a specific url without creating a page
- Using the Rewrite API to Construct a RESTful URL
- Adding rewrite endpoint breaks static front page
- Unique URL Every Time
- Rewrite default post type
- How to add dot(“.”) in post slug
- add_rewrite_rule not loading correct page nor getting variables
- Using plus (+) sign instead of space (-) in WordPress URL
- Add language/country code to each possible URL
- Google is indexing wordpress attachment pages
- SEO Friendly URLs for my plugin categories
- WordPress URL rewrite regex
- WordPress Rewrite
- custom template for custom url
- page is not redirecting
- Combine Multiple Categories Into One URL Slug
- Multilingual theme: Changing locale based on URL
- Custom rewrite rule for backend/admin?
- Allow single quote in URLs
- How to have multiple rewrite endpoints in the same URL?
- add_rewrite_rule is not taking effect in WordPress? .htaccess file doesn’t update
- Author Profile URL
- Remove all categories from URL
- change default ‘post’ slug with register_post_type_args
- Add specific word to default page permalink
- Permalink Rewrite for Custom Taxonomy
- Removing “category” from URLs then “add_endpoint()” won’t work…
- Rewrite rule to load images from production does nothing
- Custom query_vars and parse_request on wp-admin
- WordPress SSL (https) is not working with custom permalink
- How do I change attachment slug from name to id
- Creating a dynamic URL structure
- How to define a callback for an URI?
- NextGEN Gallery Lightbox – Social Share URL Redirect
- WordPress .htaccess blocks mine?
- My WP_options db rewrite_rules Does Not Work
- Rewrite Preview URL to include index.php
- How to disable URL rewriting for specific URLs?
- Custom rewrite_rules – only pass numbers and not alphabetic characters
- How can I dynamically generate an image with a static image URL?
- Rewrite wp-login.php URLS to static pages?
- How to access custom pages
- How to create rewrite endpoints it in author.php?
- Rewrite custom post type URL parameters
- How to remove wordpress directory slash
- Changed pagination URLS to use p= instead of paged=
- React Router with WordPress
- joomla to wordpress migration and 404 errors issues [closed]
- How do I only allow downloads that are referred from my domain?
- URLs with two taxonomies are missing from sitemap
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- URL Rewrite and add_query_var not working
- Rewrite permalink for specific posts
- How to redirect a link to a new link?
- How to add custom rewrite rules and point to specific templates
- How to change custom post type slug
- ow to change cutsom page url of wordpress site using htaccess
- rewrite rule generated with mpdf to a shorter version
- Show Mysql table elements as pages in WordPress
- WP in subfolder hidden by htaccess, but media links show the subfolder
- WP redirect rule doesn’t work
- URL rewrite in theme doesn’t seem to be working
- database not responding on localhost
- Import images from self-hosted to WordPress.com
- modify URL with mod_rewrite or hook
- Rewrite rule that wp-login.php?action=register is left alone
- Trying to add array of paths to post permalink
- How to rewrite URL back to default custom URL if no destination found
- add_rewrite_rule refuses to function
- Append a parametter at first or last to a certain URL
- How to add logged in username after WordPress URL?
- Dynamic URL with rewrite rule not working
- How to get relative page for every post: /post-1/contact. /post-2/contact
- How to add Search URL parameters to a Page Template Page for Custom Post Type
- Passing a variable to hyperlink text?
- History API & URL for single long page
- WordPress Rewrite Rule to EITHER Match 1 or 2 Taxonomies when adding to URL
- Display categorised url
- Is it possible to rewrite a page URL from ID to name from an API?
- Root-relative paths being rewritten on ‘Edit Page’ [closed]
- Rewrite Rule added but showing 404 rather than specified page
- Blog List Page 404 With Custom Post Type Rewriting to Blog Parent
- Custom URL segment parameters for posts
- Direct Dynamic URL in root to a location within template
- Worpress url parse
- rewrite rules social share links
- add_rewrite_rule is not fired
- URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
- URL rewrite results in a 404, but everything should work!
- Custom URL scheme – paramters on custom post type
- WordPress Custom Rewrite Rule
- URL Redirect in WordPress
- Rewrite function
- WordPress total posts per page changed and now 404 Http error comes out [closed]
- How to exclude my home page from url of my internal pages?
- Please give me the rewrite rules for my ugly urls
- Spurious URL structure (Adding extra /0/s)
- Programmatically add a custom url route “/category/index.json” to return a collection of posts in json
- WP-Include rewrite directory
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?