SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2006
    Location
    California
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clean and descriptive urls

    What have you fellow CF developers done to make your urls look better? I'd like to see many examples and options if you would all be so kind to share.

  2. #2
    Take The Blue Pill neilmerton's Avatar
    Join Date
    Jul 2004
    Location
    Leicester, UK
    Posts
    871
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Phil Williams wrote one method a while back - http://tutorial90.easycfm.com/

    There are other methods I'm sure.

  3. #3
    SitePoint Guru downtroden's Avatar
    Join Date
    Dec 2004
    Location
    illinois
    Posts
    976
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just learned about mod_rewrite with apache and for me, it's the best thing since sliced bread.
    your brain reacts in the same way whether you are
    looking at something or thinking about it...

  4. #4
    SitePoint Member
    Join Date
    Apr 2007
    Location
    WV
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I used this freeware and had no problems with it. Not sure it is any better or worse than the cold fusion method listed by neilmerton, but I figured while program something when there is something free already available. It does need to be installed on the server and you will need to hardcode all images and links of course.

    http://www.motobit.com/help/url-repl...od-rewrite.asp

  5. #5
    SitePoint Wizard mcsolas's Avatar
    Join Date
    Jul 2004
    Location
    Hermosa Costa Rica
    Posts
    1,707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by downtroden View Post
    I just learned about mod_rewrite with apache and for me, it's the best thing since sliced bread.
    You got that right. Im ditching windows based hosts as soon as I convert a few databases into the mysql from access|sql2000.

    Incidentally, you might also know who I plan to host with .. but thats another thread

  6. #6
    SitePoint Enthusiast
    Join Date
    Apr 2008
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    another Rewrite handler for CF
    http://www.cfhub.com/contributions/ses/URL_Handler.cfm

    Ohyaa Coldfusion is the solution to all of my problems that I dont have time for

  7. #7
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I covered my implementation of SES URLs in another post.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  8. #8
    SitePoint Zealot
    Join Date
    Apr 2008
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by xtazi View Post
    another Rewrite handler for CF
    http://www.cfhub.com/contributions/ses/URL_Handler.cfm

    Ohyaa Coldfusion is the solution to all of my problems that I dont have time for
    thanks for the link man

  9. #9
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,330
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    here's my approach...

    i've set up my web site with a default 404 handler

    whenever a file does not exist, the web server hands the url over to a coldfusion module which is my 404 handler

    this 404 handler takes the url, ignores the path and the extension (e.g. it ignores everything in http://example.com/foo/bar/qux.html except the qux part), looks that up in a database (the names are defined as unique), pulls out that particular entry (the one with the name qux), sets the http status to 200, and displays it

    note that i do not use CFLOCATION to display it, because CFLOCATION is a 301 and this is not a temporary relocation (aside: i have a feeling that many CF sites are poorly indexed in search engines because of CFLOCATION)
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  10. #10
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use a .htaccess file for mod_rewrite like

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^/foo /test.cfm?path=foo
    recipe for food
    hypnosis hypnotic trance
    directory pages


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •