Page 1 of 1

PostPosted: Wed Jul 18, 2007 2:11 pm
by vlad
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.

PostPosted: Fri Jul 20, 2007 12:35 am
by shannah
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