Hello,
Okay, im trying to write a working htacces mod_rewrite for the whmcs knowledgebase.
So i cannot modify the page code.. only htaccess so dont even suggest it.
anyway.
so far i have:
Code:
RewriteEngine On
Options +FollowSymlinks
RewriteRule ^knowledgebase$ knowledgebase.php
RewriteRule ^knowledgebase/$ knowledgebase.php
RewriteRule ^knowledgebase/([0-9]+)-(.*)$ knowledgebase.php?action=displaycat&catid=$1
RewriteRule ^knowledgebase/([0-9]+)-(.*)/([0-9]+)-(.*)$ knowledgebase.php?action=displayarticle&catid=$1&id=$2
and it all seems to work find up to:
Code:
RewriteRule ^knowledgebase/([0-9]+)-(.*)/([0-9]+)-(.*)$ knowledgebase.php?action=displayarticle&catid=$1&id=$2
now from what i have read it is the (.*) wild cards which are screwing up the variables.
the format i am aiming for is:
/knowledgebase/1-This-is-cat-one/5-this-is-article-five/
But have it so it works with /1-ANYTHING/5-ANYTHING/
if that makes sense, so i know of need wildcards which wont affect the variables.
Any ideas because this is doing my head in  lol
Dan
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|