jackgordon Posted February 3, 2009 Share Posted February 3, 2009 Hello, It used to work, but suddenly when I attempt to view a knowledgebase article, the result is the template page but no article. All I see besides the header & footer is the question "Was this answer helpful?" The articles are still there - you can see them in the main knowledgebase page, and I can still access them in the admin section. I did upgrade recently, so I suspect that may be the culprit, but how would I go about about fixing it? If anyone wants to see the issue, it is at http://www.webrecon.com Thanks 0 Quote Link to comment Share on other sites More sharing options...
AndrewMKP Posted February 3, 2009 Share Posted February 3, 2009 Try deleting all the files in your Templates_C folder to clear the cache? 0 Quote Link to comment Share on other sites More sharing options...
jackgordon Posted February 3, 2009 Author Share Posted February 3, 2009 Didn't help... 0 Quote Link to comment Share on other sites More sharing options...
AndrewMKP Posted February 3, 2009 Share Posted February 3, 2009 and you have updated all your .php files yeah? Gone through your settings about the SEO knowledgebase links? You must have affected something recently. I suspect its a .php file you need to upload. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted February 4, 2009 Share Posted February 4, 2009 Looks like you haven't added the new href lines into your custom header.tpl and also not modified the knowedgebase tpl's to be able to see the SEO changes. 0 Quote Link to comment Share on other sites More sharing options...
jackgordon Posted February 4, 2009 Author Share Posted February 4, 2009 Looks like you haven't added the new href lines into your custom header.tpl and also not modified the knowedgebase tpl's to be able to see the SEO changes. I don't remember seeing instructions for this in the upgrade process... Can you direct me toward more information? 0 Quote Link to comment Share on other sites More sharing options...
jackgordon Posted February 4, 2009 Author Share Posted February 4, 2009 Never mind... I neglected to update the knowledgebase template files during the upgrade. (feeling like a dunce) Thanks for all the suggestions! 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted February 4, 2009 Share Posted February 4, 2009 you also need to add the href line from the new header.tpl to your custom tpl and also rename htaccess.txt to .htaccess 0 Quote Link to comment Share on other sites More sharing options...
ChrisGooding Posted February 20, 2009 Share Posted February 20, 2009 (edited) We are in the process of moving our KB from Kayako to Whmcs, as after all we have moved the ticket side to it. Problem is, I appear to have the urls re-writing, however when clicking a link, I just get a 404 error with "The requested URL /knowledgebase.php was not found on this server." Staring back at me Annoying thing is, in between us putting the aritcles in, and noticing the error, good old Google has indexed the links, and gave me a list full of 404 error reports Anyone have any ideas? Cheers Forgot to post the .htaccess rule I am using.... <IfModule mod_rewrite.c>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]+)/[a-z0-9_-]+\.html$ /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] </IfModule> Edited February 20, 2009 by ChrisGooding 0 Quote Link to comment Share on other sites More sharing options...
ChrisGooding Posted February 20, 2009 Share Posted February 20, 2009 Also, just noticed something else....... hopefully may help shed some more light on it. The urls that are being "SEO'd" have the catagory number instead of the catagory name!?! e.g http://www.xtrgameservers.com/services/knowledgebase/1/How_do_I_log_in_to_my_account.html I am guessing that this is due to an issue with the re-write rule, but unsure as to whether it is connected to the 404 issue? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted February 20, 2009 Share Posted February 20, 2009 Change your htaccess to this <IfModule mod_rewrite.c>RewriteEngine On # Announcements RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ /services/announcements.php?id=$1 [L,NC] RewriteRule ^announcements$ /services/announcements.php [L,NC] # Downloads RewriteRule ^downloads/([0-9]+)/[a-z0-9_-]+\.html$ /services/downloads.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^downloads$ /services/downloads.php [L,NC] # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ /services/knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ /services/knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ /services/knowledgebase.php [L,NC] </IfModule> 0 Quote Link to comment Share on other sites More sharing options...
ChrisGooding Posted February 20, 2009 Share Posted February 20, 2009 Excellent Sparky thanks. Though I could swear I had tried that. All I need to do now is get it to replace the _'s for -'s and Im happy. thanks again 0 Quote Link to comment Share on other sites More sharing options...
ChrisGooding Posted February 20, 2009 Share Posted February 20, 2009 Actually I am still getting a number instead of a name for the category section of the url And have only succeeded in breaking and fixing it in the process of trying to sort that and the underscores, lol. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted February 20, 2009 Share Posted February 20, 2009 You can use a modifier to change the links in the knowledgebase.tpl and knowledgebasecat.tpl files like below {$kbcat.urlfriendlyname|replace:"_":"-"} {$kbarticle.urlfriendlytitle|replace:"_":"-"} Don't forget the breadcrumb nav links in the header.tpl {$breadcrumbnav|replace:"_":"-"} 0 Quote Link to comment Share on other sites More sharing options...
ChrisGooding Posted February 21, 2009 Share Posted February 21, 2009 (edited) Thanks again Sparky, as always, the fore bringer of knowledge Cheers....... Dont suppose while I have your attention, I could ask if you have any ideas on why I have numbers in the url in place of catagory names? Pretty please with cherries Edited February 21, 2009 by ChrisGooding 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted February 21, 2009 Share Posted February 21, 2009 Thanks again Sparky, as always, the fore bringer of knowledge Cheers....... Dont suppose while I have your attention, I could ask if you have any ideas on why I have numbers in the url in place of catagory names? Pretty please with cherries Basicly to keep the length of the url down else you could run into some other problems like possibly may get a 406 error when the url maxlength is exceeded. 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.