Search engine friendly URLs

A place for users and developers of the Xataface to discuss and receive support.

Postby vlad » Wed Jul 18, 2007 2:11 pm

Using mod rewrite I can do this only partially.
example:
I created a directoy using dataface and my url's look like this
http://www.example.com/state/city/&-cursor=0&-skip=0&-limit=30&-mode=list (browse action)
I would like my url's to look like:
http://www.example.com/state/city/example_record_name/

Excuse my english. Thanks in advance.
vlad
 
Posts: 28
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Fri Jul 20, 2007 12:35 am

This is a bit tricky because there are multiple ways to access the browse action for a particular record. You can view a the 5th record from the found set using:
http://www.example.com/index.php?-action=view&-skip=4&-table=people
But another URL to access the same record might be
http://www.example.com/index.php?-action=view&-table=people&personid=10
Or another url for the same record might be:
http://www.example.com/index.php?-action=view&-table=people&firstname=Steve&lastname=Hannah

So I'm not sure of it there is a good clean way to implement "nice" urls inside dataface.
As you mentioned, using mod_rewrite, you can make alternative "nice" urls to access the view tab of records. Search engines tend to pick up the links regardless of whether they are nice anyways.

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 6 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved