• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Friendly URLs

New Here ,
Apr 26, 2007 Apr 26, 2007

Copy link to clipboard

Copied

I'm looking for a way to customize the URL syntax.

I have an entry, lets say it is a document about Coffee, and the title is "Decaf Please".
The unique ID for this entry is "4" so the current URL is example.com/directory/index.cfm?id=4
but I want the URL to be like this instead: example.com/coffee/decaf-please/

I should note that "coffee" and "decaf-please" can be pulled out of the database, just as the ID can.

(I understand that I must settle for a URL like example.com/coffee/decaf-please.cfm -- because of IIS
I really DONT want to settle for a URL like http://example.com/index.cfm/coffee/decaf-please
... or anything else that puts a filename in the middle of the URL)

any ideas?
TOPICS
Advanced techniques

Views

280

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 26, 2007 Apr 26, 2007

Copy link to clipboard

Copied

You need to install ISAPI rewrite and then you can do what you want with some simple regex.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 10, 2007 Jul 10, 2007

Copy link to clipboard

Copied

LATEST
Did ISAPI work for you? I'm trying to do the same thing, however, my site is hosted on a remote host.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation