How do i redirect url with russian slug to specific php page. For example I have this url.
http://www.example.com/основной-момент.htm
and want to redirect to this one in .htaccess
http://www.example.com/category.php?slug=<russian slug>
How do i redirect url with russian slug to specific php page. For example I have this url.
http://www.example.com/основной-момент.htm
and want to redirect to this one in .htaccess
http://www.example.com/category.php?slug=<russian slug>
If it's allowed in your server you could try something like this for the specific page in your
.htaccess
file:In Regex if the character set is enabled on your server you should be able to use the range for the characters:
To capture the phrase you would use this (just like English):
Another way is by detecting the language
Additionally if you're using a dynamic language on the server you should be able to use the
REQUEST_URI
var for parsing and determining the intended language as Apache serves the content and programming languages (like PHP or Perl) can do more with parsing.