mohs3n Posted May 16, 2015 Share Posted May 16, 2015 Hello This is the content of my website's .htaccess : --- RewriteEngine on # Announcements RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC] RewriteRule ^announcements$ ./announcements.php [L,NC] # Downloads RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^downloads$ ./downloads.php [L,NC] # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] --- But when i use farsi language in an article subject the url changes like this http://website.com/knowledgebase/---outlook.html As you can see all the non-english words are changed to "-" . Is there anyway to fix this? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 16, 2015 Share Posted May 16, 2015 modify it to the following might make it work, please try: # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/(.*)\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] 0 Quote Link to comment Share on other sites More sharing options...
mohs3n Posted May 16, 2015 Author Share Posted May 16, 2015 I have tried it but the result is the same as before . modify it to the following might make it work, please try: # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/(.*)\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 22, 2015 Share Posted May 22, 2015 try this action hook: http://forum.whmcs.com/showthread.php?101190-Knowledgebase-Non-Latin-SEO-URLs-Fix it doesn't support Arabic characters at the moment but let me know if this worked for you or not, it can be improved 0 Quote Link to comment Share on other sites More sharing options...
mohs3n Posted May 22, 2015 Author Share Posted May 22, 2015 Unfortunately it didnt work. How can i define farsi characters in this hook? try this action hook:http://forum.whmcs.com/showthread.php?101190-Knowledgebase-Non-Latin-SEO-URLs-Fix it doesn't support Arabic characters at the moment but let me know if this worked for you or not, it can be improved 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 23, 2015 Share Posted May 23, 2015 Unfortunately it didnt work.How can i define farsi characters in this hook? I'll try to make customization to include farsi characters, anyway this will work differently, I will let you know 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.