Deprecated: Hook tag_rewrite_rules is?deprecated?since version 3.1.0! Use post_tag_rewrite_rules instead. in?[my install directory]/wp-includes/functions.php?on line?5758
but somehow it still worked…
]]>This is a fix to allow non-Latin characters in URLs.
Just edit the file wp-content/plugins/wp-no-base-permalink/wp-no-base-permalink.php
and append this to the rewrite rules at lines: 189,190,191: '(?i)' .
Old lines:
$category_rewrite[$blog_prefix . $category_base . '(' . implode( '|', $regex ) . ')/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$'] = 'index.php?category_name=$matches[1]&feed=$matches[2]';
$category_rewrite[$blog_prefix . $category_base . '(' . implode( '|', $regex ) . ')/page/?([0-9]{1,})/?$'] = 'index.php?category_name=$matches[1]&paged=$matches[2]';
$category_rewrite[$blog_prefix . $category_base . '(' . implode( '|', $regex ) . ')/?$'] = 'index.php?category_name=$matches[1]';
New lines:
$category_rewrite['(?i)' . $blog_prefix . $category_base . '(' . implode( '|', $regex ) . ')/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$'] = 'index.php?category_name=$matches[1]&feed=$matches[2]';
$category_rewrite['(?i)' . $blog_prefix . $category_base . '(' . implode( '|', $regex ) . ')/page/?([0-9]{1,})/?$'] = 'index.php?category_name=$matches[1]&paged=$matches[2]';
$category_rewrite['(?i)' . $blog_prefix . $category_base . '(' . implode( '|', $regex ) . ')/?$'] = 'index.php?category_name=$matches[1]';
]]>
Hi, after switch on plugin and remove category base all sites where category was have error 404. How can I repair this?
]]>There seems to be a compatibility issue between WPML and the plugin ‘WP No Base Permalink’. When the plugin is inactive, I can edit any page and post without problems, when active, there is issues to reload the site and save changes to the site. Also, the plugin doesn’t appear in the WPML compatible list: https://wpml.org/plugin/?wpv_view_count=120064&wpv-plugin-functionality=0&wpv_post_search=WP+No+Base+Permalink&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search
It doesn’t mean that it is not compatible, just that eventually some issues like this might happen.
The option ‘Disabled Category Base’ in Settings -> Permalinks -> WP No Base Permalink is causing the problem, just like in this errata:
https://wpml.org/errata/yoast-seo-strip-the-category-base-does-not-work-in-the-second-language/
The plugin author should consider joining the “Go-Global” program, where WMPL works with theme/plugin authors to solve compatibility issues between their themes/plugins and WPML.
https://wpml.org/documentation/support/go-global-program/
Sincerely,
Daniel
This is a wonderful plugin, it worked fine even though that it has not been updated for 2 years.
What was most interesting to me to remove both category & tag from slug, but tried to add something else to replace tag slug but did not work; any suggestions how it may work?
Thanks,
]]>Hi,
Would you please be so kind as to let me know whether the plugin WP no base permalink is GDPR conform?
Best regards, Stefanie
]]>WordPress may show posts from 2 categories (AND)
/category/cat1+cat2
How do the same with this pugin?
]]>hello
WP No Base Permalink
not working
https://www.zoologi.pl/jaszczurka/
https://www.zoologi.pl/sauria/
https://www.zoologi.pl/jaszczurki+sauria/
btw i didnt remove tag base, but it removed that base automatically in settings
thanks for help/…
Pawe?
]]>hello
test / test login / pass
https://www.zoologi.pl/jaszczurki/ category displaying tag ‘jaszczurki’
tags work normally as they should under https://www.zoologi.pl/tags/jaszczurki/
any chances for fix?
p.s.
nice would be option to set also the same thing for pages
By default page site.com/tag/name1+name2 returns posts that have both name1 and name2 tags.
But after removing tag base page site.com/name1+name2 returns 404 error.
Is it possible to fix this problem?
Hey, I suggest adding this to your plugin, it would make it “complete” ??
Right now i have to add it separately to functions.php
// author
add_filter('author_rewrite_rules', 'no_author_base_rewrite_rules');
function no_author_base_rewrite_rules($author_rewrite) {
global $wpdb;
$author_rewrite = array();
$authors = $wpdb->get_results("SELECT user_nicename AS nicename from $wpdb->users");
foreach($authors as $author) {
$author_rewrite["({$author->nicename})/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$"] = 'index.php?author_name=$matches[1]&feed=$matches[2]';
$author_rewrite["({$author->nicename})/page/?([0-9]+)/?$"] = 'index.php?author_name=$matches[1]&paged=$matches[2]';
$author_rewrite["({$author->nicename})/?$"] = 'index.php?author_name=$matches[1]';
}
return $author_rewrite;
}
add_filter('author_link', 'no_author_base', 1000, 2);
function no_author_base($link, $author_id) {
$link_base = trailingslashit(get_option('home'));
$link = preg_replace("|^{$link_base}author/|", '', $link);
return $link_base . $link;
}
]]>
Hi,
I installed this plugin on a new site to test what would happen if in the future it is no longer supported or updated and stops working with the future versions of WP.
The plugin works just great! But when I deactivate it and delete it, the category page then return a 404 error and the permalink is still without /category/
I tried saving changes in settings>>permalink but the problem still persists. I tried it on the “uncategorized” category because I wanted to test the plugin before building out the site structure with it.
How is this plugin and its effects removed completely, so that permalinks go back to having /category/?
I’m going to use the plugin and review 5 stars because it’s a super handy tool. But I must know how to fix this issue in the future.
Thanks! ??
]]>Unchecking this box doesn’t allow the tag base back. Not sure why this is, I’ve went through the call stack and it doesn’t seem to work.
]]>Hi, the plugin isn’t working when WordPress SEO is installed.
I also installed WooCommerce and WPML.
When trying to use the plugin in order to remove category slug I get 404 pages for all categories.
]]>Hi there, I like your plugin as it’s very useful. However I just discovered that my subscribers still see the category text in the URL, and it obviously leads to a page not found.
I have disable any caching plugins and tried in browsers I hadn’t previously used to visit the site…
No chance..
Any idea?
Thanks!
T.
Hello
I just would like to know what happens, if in 6 months or 1 years i stop using your plugin (or if you stop supporting it for next versions of wordpress), will it breaks links in my site?
When i deactivate it to test, the pages on my main menu return 404 error, nothing found, so how would they be reachable if one day i stop using the plugin? Is it reversible?
Thanks
Great plugin
if tag slug contains chinese letters – appears 404 too.
If open archive of this tag by link from admin panel/tags – archive opens. But if you open URL from another place – display 404 error too.
———–
And,if deactivate the plugin,it is not show 404 .(‘/tag/’+chinese letters can work)
Thanks very much!!!
]]>