Jump to content

knowledgebase problem


jackgordon

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 3 weeks later...

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 by ChrisGooding
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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:"_":"-"}

Link to comment
Share on other sites

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 :D

Edited by ChrisGooding
Link to comment
Share on other sites

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 :D

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.

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