Zorro67 Posted January 5, 2009 Share Posted January 5, 2009 Hi all, hav recently upgraded to 3.8.1, and managed to implement SEF links successfully. however, one small issue; the 'replace' character is "_", which anyone with any knowlege of SEO knows joins a word rather than separates it. So google sees "thisisanarticleabouthowtouploademail.htm" instead of "this is an article about how to upload email.htm" I tried the below code (the bold added section is a residual snip from pre 3.8.1), is from knowledbase.tpl, but it don't work. <a href="{if $seofriendlyurls}knowledgebase/{$kbcat.id}/{$kbcat.urlfriendlyname|regex_replace:"_":"-"}{else}knowledgebase.php?action=displaycat&catid={$kbcat.id}{/if}">{$kbcat.name}</a> ({$kbcat.numarticles})</b> Have i got the code wrong, its not do-able, or do i need to put in a FR to Matt to have the urlfriendly link changed from "_" to "-"? 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted January 5, 2009 Author Share Posted January 5, 2009 Problem solved. it might help if i typed correctly. I should have typed |regex_replace:"/ /":"-" 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted January 5, 2009 Share Posted January 5, 2009 Try this one {$kbcat.urlfriendlyname|regex_replace:"/[_]/":"-"} 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted January 8, 2009 Author Share Posted January 8, 2009 Thanks sparky, Also realised that you also have to change the _in your breadcrumb navigation. So in your header tpl file, look for {$breadcrumbnav}</span> and replace it with {$breadcrumbnav|regex_replace:"/[_]/":"-"}</span> A further longer thread about SEO in WHMCS is located at http://forum.whmcs.com/showthread.php?p=30233 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.