Fix for non-lating URLs
-
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]';
- The topic ‘Fix for non-lating URLs’ is closed to new replies.