Jump to content

Knowledgebase articles not opening


ZillurRehman

Recommended Posts

Hi,

 

I am new user of your product WHMCS. I have all the things setup.

 

I have now added two articles in Knowledgebase area of WHMCS, they do appear but when i click them the same pages appears again and again.

 

Here is the link: http://shadowaura.co.uk/knowledgebase.php

when i click it the same page opens on this link: http://shadowaura.co.uk/knowledgebase/1/Reset-Password.html

 

 

Thanks in advance.

Regards,

ZillurRehman

Link to comment
Share on other sites

I think there is something wrong with your .htaccess file.

 

setup -> general settings -> support

 

try unticking the "KB SEO Friendly URLs" checkbox - the knowledgebase pages should then work again...

 

if so, take a look at the page below for help with .htaccess

 

http://docs.whmcs.com/Support_Center#Search_Engine_Friendly_URLS

Link to comment
Share on other sites

by the way i have this default text in my .htaccess file

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]

Link to comment
Share on other sites

it's going to be the .htaccess file that's the issue...

 

two things to try...

 

1. if you're using nginx, there was a version of htaccess posted in the link I gave...

2. there is a version posted at the link below that might work...

 

http://forum.whmcs.com/showthread.php?27516-Knowledgebase-KB-SEO-URL-Re-writing-not-Working&p=340511#post340511

Link to comment
Share on other sites

thanks man :)

i replaced this:

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]

 

 

With:

RewriteEngine On
Options +FollowSymLinks
Options -Indexes
Options -MultiViews

# 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]

 

 

and it worked :)

Link to comment
Share on other sites

  • 7 months later...

Have a .htaccess file with the same content but nevertheless rewrite does not work. The log shows:

 

[sat Aug 08 17:22:21 2015] [error] [client 31.173.85.100] File does not exist: /home/www/whmcs/knowledgebase

[sat Aug 08 17:23:27 2015] [error] [client 31.173.85.100] File does not exist: /home/www/whmcs/favicon.ico, referer: domain.com/knowledgebase/7/Advanced-cPanel-Management

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