hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : SEO / SEM Discussions : Mod_Rewrite Help Needed
Reply

Forum Jump

Mod_Rewrite Help Needed

Reply Post New Thread In SEO / SEM  Discussions Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-18-2008, 07:46 PM
ufhosting_Leon ufhosting_Leon is offline
Junior Guru Wannabe
 
Join Date: Jun 2007
Location: England
Posts: 88

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:

Quote:
RewriteEngine On
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]
The thing is, people can still use the old URLs...

For Example:
http://www.ufhosting.org/whmcs/knowl...vious_host.php
is the same as:
http://www.ufhosting.org/whmcs/knowl...laycat&catid=1

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:
http://www.ufhosting.org/whmcs/knowl...vious_host.php
and click on the bread crumb navigation it takes you to:

http://www.ufhosting.org/whmcs/knowl...laycat&catid=1

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!

__________________
Shared Web Hosting Plans for Resource Intensive Sites
Choice of PHP, CloudLinux OS cPanel Servers.
Reasonably Priced RAID 10 KVM VPS
Find Out More: Ultimate Forum Hosting



Sponsored Links
  #2  
Old 04-18-2008, 10:14 PM
incrediblehelp incrediblehelp is offline
iNET Interactive
 
Join Date: Mar 2008
Location: Fort Thomas, Kentucky
Posts: 269
Are you using some sort of CMS to manage the websites content??

__________________
Jaan Kanellis | iNET Interactive

  #3  
Old 04-19-2008, 06:12 AM
nuclei nuclei is offline
WHT Addict
 
Join Date: Jan 2002
Posts: 159
You don't need mod_rewrite help.

You simply need to add the old style URL's to a robots.txt file as exclusions. If you really want to use 301's simply add this at the end of your rewrite rules: [R=301]

__________________
William Cross
Don Halbert *play site*
william@seofox.com

Sponsored Links
  #4  
Old 04-19-2008, 12:18 PM
ufhosting_Leon ufhosting_Leon is offline
Junior Guru Wannabe
 
Join Date: Jun 2007
Location: England
Posts: 88
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
knowledgebase.php?action=displaycat&catid=2
to
knowledgebase/2/Jargon_Buster

I added this rule to the bottom of my .htaccess file:
Code:
 
RewriteRule ^knowledgebase.php?action=displaycat&catid=2$  http://www.ufhosting.org/whmcs/knowl.../Jargon_Buster  [R=301,L]
But it does not work.

Like I said all help is much appreciated. Just need to get this working.

__________________
Shared Web Hosting Plans for Resource Intensive Sites
Choice of PHP, CloudLinux OS cPanel Servers.
Reasonably Priced RAID 10 KVM VPS
Find Out More: Ultimate Forum Hosting

Reply

Related posts from TheWhir.com
Title Type Date Posted
Stanford Researchers Increase Cost Effectiveness of Cloud and Contribute to Cleantech Web Hosting News 2014-05-01 08:31:18
Labour Calls for Greater Accountability by British Intelligence Agencies in Speech Addressing Cybercrime Web Hosting News 2014-03-03 11:20:48
GoDaddy Acquires Invoicing Tool Ronin Web Hosting News 2013-10-02 12:22:52
InfoRelay Online System Launches Cloud Hosting Platform SnapScale v2.1 Web Hosting News 2013-05-06 11:51:16
Software AG Acquires Cloud PaaS Vendor LongJump Web Hosting News 2013-04-26 12:05:25


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?