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 JagNet is online now
Smoke me a kipper...
Click here for more information
 
Join Date: Aug 2007
Posts: 1,552 JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 18 h 6 m 57 sec
Reputation Power: 26
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: 1
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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway