PDA

View Full Version : Knowledgebase KB SEO URL Re-writing not Working



NetwiseHosting
02-24-10, 05:47 PM
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

John
02-25-10, 11:32 AM
The file is called htaccess.txt by default and needs to be renamed to .htaccess

You also need mod_rewrite configured on your server.

PowerChaos
01-13-11, 07:17 PM
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

dannyl
02-02-11, 01:55 PM
Hi, what happened with this? I have the same problem as PowerChaos.

zemon
02-27-11, 09:19 PM
The same with me been using WHMCS for over two years and have never been about to get this to work.

nay27uk
03-01-11, 01:51 PM
I had the same problems blank page its like it is not creating the .html files

mojorise
03-16-11, 08:11 AM
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

PowerChaos
01-04-12, 08:04 PM
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

cavamondo
01-26-12, 08:40 AM
Did you set AllowOverride None to AllowOverride All in your httpd.conf?

laszlof
01-26-12, 10:49 PM
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.

JewelHost
01-27-12, 05:20 PM
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

josuito
02-15-12, 03:01 PM
I just changed the htaccess.txt to .htaccess and problem solved. Also i added the error pages in it.

VoiNetworks
02-17-12, 01:35 AM
The same with me been using WHMCS for over two years and have never been about to get this to work.

You need to disable MultiViews in Apache or .htaccess
See http://stackoverflow.com/questions/7666487/how-to-prevent-apache-mod-rewrite-from-treating-path-as-file-with-same-name for more details