Thread: Mod_Rewrite Help Needed
04-18-2008, 07:46 PM #1
Mod_Rewrite Help Needed
I use WHMCS for my hosting client control panel.
I today decided to use mod_rewrite to try and improve SEO on the URLS for my knowledgebase. Below is the .htacess file I used:
RewriteRule ^knowledgebase/([0-9]+)/([0-9]+)/[a-z0-9_-]+\.php$ /whmcs/knowledgebase.php?action=displayarticle&catid=$1&id=$2 [L,NC]
RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ /whmcs/knowledgebase.php?action=displaycat&catid=$1 [L,NC]
is the same as:
Now I have heared having two pages with the same content can negatively impact your search rankings.
The problem goes further, if you go to:
and click on the bread crumb navigation it takes you to:
which again is the same content with a different address... three pages then all the same content. Google wont like that? I cannot edit the bread crumb navigation due to the source being encoded.
I hear I can use mod_Rewrite to do a 301 redirect? How would I do this. I am new to mod_rewrite.
I need to SEO my site badly and any help would be greatly appreciated.
I apologise for linking in this topic if that is not allowed, I just need to explain the situation and give examples.
Thanks for any help!
04-18-2008, 10:14 PM #2
Are you using some sort of CMS to manage the websites content??Jaan Kanellis | iNET Interactive
04-19-2008, 06:12 AM #3WHT Addict
- Join Date
- Jan 2002
04-19-2008, 12:18 PM #4
I am using WHMCS which is a billing suite.
I tried adding [R=301] to the end of my rewrite rules and it made no difference .
How using rewrite rule could i redirect
I added this rule to the bottom of my .htaccess file:
RewriteRule ^knowledgebase.php?action=displaycat&catid=2$ http://www.ufhosting.org/whmcs/knowl.../Jargon_Buster [R=301,L]
Like I said all help is much appreciated. Just need to get this working.