SEO Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherSEO Scripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old October 31st, 2007, 07:43 AM
DavidL DavidL is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 5 DavidL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 27 sec
Reputation Power: 0
Dynamic to static URL re-writing question...

bit of advice needed... (i think i know what im talking about here but mighnt)
the site we're having made for us uses database information for new pages created using a content management system at the administration end...

at the moment, this means pages come out with a lot of dynamic parameters...(i cant recreate the url i mean as im a new user account....)

design company is in the process of sorting out a way of making these static urls for search engine/usability...

how long does this usually take??? what can be used to do it??? does anyone know???

cheers!
David

Reply With Quote
  #2  
Old October 31st, 2007, 08:04 AM
JagNet's Avatar
JagNet JagNet is offline
Smoke me a kipper...
SEO Chat Regular (2000 - 2499 posts)
 
Join Date: Aug 2007
Posts: 2,487 JagNet User rank is Second Lieutenant (5000 - 10000 Reputation Level)JagNet User rank is Second Lieutenant (5000 - 10000 Reputation Level)JagNet User rank is Second Lieutenant (5000 - 10000 Reputation Level)JagNet User rank is Second Lieutenant (5000 - 10000 Reputation Level)JagNet User rank is Second Lieutenant (5000 - 10000 Reputation Level)JagNet User rank is Second Lieutenant (5000 - 10000 Reputation Level)JagNet User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 4 Days 3 h 37 m 22 sec
Reputation Power: 63
There are various approaches to rewriting URLs. the quick and easy method is to take the existing page title, turn it into a url friendly string (remove special characters, replace spaces with hyphens, lower case it, remove short words, etc) and place it into the URL together with the page id number from the database, eg

Title: An Example Page Title | Page Id #: 25
Existing URL: /page.php?pageID=25

gives: /example-page-title-25.html

your .htaccess rewrite rule would then be something like:

RewriteRule ^(.+)-(0-9+).html$ page.php?pageID=$2

NB, you'd also want to implement a method whereby the text string is checked, otherwise you could replace it with anything and still pull the same page using the id#.

To give you more control over the URLs, you can add an additional indexed field into the database to store a URL "slug". Instead of querying the database for the page id# you can then query it for the url slug instead.

Example url: /example-page-title.html

.htaccess:
RewriteRule ^(.+).html$ page.php?urlSlug=$1

These examples assume you're using an Apache server with mod_rewrite enabled. It's possible to achieve url rewriting on Windows by using something like ISAPI Rewrite, but I have no personal experience with that so I can't give examples.

As to how long it would take to put URL rewriting in place depends on the CMS you're using, and which method you want to implement. For the more simple version above it could be achieved in ~15 minutes if the developer has previous experience with the CMS.

There are plenty of tutorials available for rewriting urls, so I'd suggest looking into it in more depth. The examples above are just a quick introduction.
Comments on this post
mprough agrees: Great answer!
NavyCS agrees: Im out of rep but - great response!

Reply With Quote
  #3  
Old November 3rd, 2007, 01:53 AM
MichelRobinson2 MichelRobinson2 is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 93 MichelRobinson2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 36 m 49 sec
Reputation Power: 2
Thanks for sharing this information. I really needed it

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherSEO Scripts > Dynamic to static URL re-writing question...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT