Jump to content

problem with htaccess and arabic links in seo friendly mode


LAZer414

Recommended Posts

hi , i am designing a template for a customer , i saw that the links in the pages do not show titles and instead show - - - for arabic/persian UTF-8 characters in seo friendly mode. how can i fix this ?

 

for example , in knowledgebase , when seo friendly links is off , there is a directory named resellers. , with link

../knowledgebase.php?action=displaycat&catid=2

 

when i name the folder in english seo friendly url is working fine :

../knowledgebase/2/resellers

 

but when i type the folder name in arabic/persian utf-8 characters it generates a link as follows :

../knowledgebase/2/-

but it should be for example :

../knowledgebase/2/نمایندگان_فروش

 

and this is the link for the post inside that folder :

../knowledgebase/2/-------.html

but it should be :

../knowledgebase/2/فوانین_نمایندگان.html

 

which in english naming/typing , it would be :

../knowledgebase/2/reseller-rules.html

 

this is in the case that there is no problem with the encoding and it is not related yet to the htaccess file . ( because its the link that is generated in the pages and yet is not related to the apache server to handle the correct url )

 

the thing that i found in template is a variable which i dont know where should i search for it ? maybe it is generated in a coded file of whmcs ? :(

in knowledgebase.tpl it is the code that creates the links :

<table width="100%" border="0" cellpadding="10" cellspacing="0" dir='rtl'>
 <tr> {foreach key=num item=kbcat from=$kbcats}
   <td width="33%" align="right" dir='rtl' valign="top">
       <img src="images/folder.gif" border="0" class="absmiddle" alt="Folder" /> <strong>
       <a href="{if $seofriendlyurls}knowledgebase/{$kbcat.id}/{$kbcat.urlfriendlyname}{else}knowledgebase.php?action=displaycat&catid={$kbcat.id}{/if}">{$kbcat.name}</a>
       </strong> ({$kbcat.numarticles})<br />
     {$kbcat.description} </td>
   {if $num is div by 3} </tr>
 <tr> {/if}
   {/foreach} </tr>
</table>

 

is there any variable that can read the titles directly from the database ?

i want to read the titles directly from database and then change htaccess accordingly if it doesnt work with the created links.

 

 

any suggestions ?

Edited by LAZer414
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated