Jump to content

Knowledgebase KB SEO URL Re-writing not Working


NetwiseHosting

Recommended Posts

Hi All,

 

I hope it is something obvious, but I have followed the simple WHMCS tutorial on enabling SEO Friendly URL's in the knowledgase but I am now getting a 404 error.

 

Just to make it clear, I have enabled the option in the control panel and renamed the .htaccess file without the .txt any help would be gratefully received.

Kind regards,

 

Matthew

Link to comment
Share on other sites

  • 10 months later...

i know that i am a bit late to answer on this

but i got the same kinda problem

 

exept that i do not get a 404 error , but i just get nothing ( it stays at his dir )

 

and mod rewrite is working for 100% as my seo directory is using it to and a few other sites of me

 

here is the link (in case of intrest)

 

http://cp.powerchaos.com/knowledgebase/2/Windows-XP

 

that just go back to my main page of the KB dir , but it does not give a error ( so it basicly works but not like it need to be )

 

here is my htacces file

 

RewriteEngine On
Options +FollowSymLinks
Options -Indexes

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

 

Greets From PowerChaos

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
  • 2 weeks later...

FYI - I just had the same problem and then realised that I had renamed htaccess.txt to htaccess and not .htaccess (I forgot to add the dot to the front) - works fine now.... Doh!

 

On the same subject -

 

my knowledgebase SEO friendly URL's have a number where the category name should be ie: mydomain/clientarea/knowledgebase/2/Configuring-Email-on-an-iPhone.html

 

i would prefer it to read mydomain/clientarea/knowledgebase/email/Configuring-Email-on-an-iPhone.html

 

Any help much appreciated :lol:

 

Cheers

Link to comment
Share on other sites

  • 9 months later...

ok it is now a long time ago from last reply

but i still got the same problem if i enable the KB

 

all other mod rewrites are working perfect so its not realy mod rewrite as this is just refusing to work

 

do some1 got a solution to this problem ?

 

Greeetings From PowerChaos

Link to comment
Share on other sites

  • 3 weeks later...

You dont have the KB SEO option enabled in your WHMCS config. Even with the .htaccess rules setup, you need that in order for it to work.

 

its under Setup -> General Settings -> Support

 

The option is called "KB SEO Friendly URLs"

 

Enable that, and it will work.

Link to comment
Share on other sites

i know that i am a bit late to answer on this

but i got the same kinda problem

 

exept that i do not get a 404 error , but i just get nothing ( it stays at his dir )

 

and mod rewrite is working for 100% as my seo directory is using it to and a few other sites of me

 

here is the link (in case of intrest)

 

http://cp.powerchaos.com/knowledgebase/2/Windows-XP

 

that just go back to my main page of the KB dir , but it does not give a error ( so it basicly works but not like it need to be )

 

here is my htacces file

 

Looking at your link you still have htaccess named as htaccess.txt

 

http://cp.powerchaos.com/htaccess.txt

 

unless you have copied the contents into a file called .htaccess

 

Can you confirm that you have renamed the htaccess.txt file in the root directory of the

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...

have anyone already found the solutions for this? thanks

 

 

FYI - I just had the same problem and then realised that I had renamed htaccess.txt to htaccess and not .htaccess (I forgot to add the dot to the front) - works fine now.... Doh!

 

On the same subject -

 

my knowledgebase SEO friendly URL's have a number where the category name should be ie: mydomain/clientarea/knowledgebase/2/Configuring-Email-on-an-iPhone.html

 

i would prefer it to read mydomain/clientarea/knowledgebase/email/Configuring-Email-on-an-iPhone.html

 

Any help much appreciated :lol:

 

Cheers

Link to comment
Share on other sites

  • 3 months later...

This solution seems to work for me

 

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]

 

in short , be sure those items are at top

RewriteEngine On
Options +FollowSymLinks
Options -Indexes
Options -MultiViews

 

took me a long time to find this solution , but the solution finaly works

 

the 2 things that are added are the mutliview and the followsymlinks

 

hopely this can also solve it for you

 

Greetinsg From PowerChaos

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