Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default URL Rewriting

    Hi all,

    I'm hoping someone can help me here. I've been using sesConverter to rewrite
    a url like this:

    [url]http://www.yoursite.com/index.cfm?section=services&pageID=anything[/url]

    to look like this:

    [url]http://www.yoursite.com/index.cfm/section/services/pageID/anything[/url]

    HOWEVER... I really don't like having to keep the INDEX.CFM in the address.
    Rather I would like to have the rewritten url look like this:

    [url]http://www.yoursite.com/section/services/pageID/anything[/url]

    It could always default to index.cfm without having to put index.cfm in the
    url...

    Is this possible WITHOUT have to use the 404 page to trick it?

    Thanks for your help!!



    J dubya Guest

  2. Similar Questions and Discussions

    1. Help! Contribute is rewriting Lasso code.
      Hi, I'm finishing development of a large site that was designed in Dreamweaver using nested templates and has several pages with Lasso code that...
    2. code rewriting
      Hi, I have given a colleague of mine acces to edit our website through Contribute .. He can publish (create files, delete, etc.) No problem...
    3. eRuby and URL rewriting
      I am in the process of doing some web page authoring using eRuby. My question is this-- how do I access the post/get information in URL...
    4. rewriting posted content for use in redirect
      similar to a recently asked question - The scenario is that posted data from World Pay is to be used to construct one of two pages depending on...
    5. DreamweaverMX Keeps Rewriting my Code
      For some reason, when I open some files, DreamweaverMX adds in extra tags, usually closing CFIFs. This results in the pages breaking if I don't...
  3. #2

    Default Re: URL Rewriting

    Sorry for the double post... but consider this.

    Say I have a url that I know will ONLY use 2 variables. (for a basic info site
    for a small business) One variable is the site section, the second is the page
    ID


    And, suppose that I use only one index.cfm file which resides in the web root
    to serve the entire site.

    Is it possible to make a rewrite rule that would take this:

    [url]http://www.anysite.com/services/loans[/url]

    and interpret it server side to mean this:

    [url]http://www.anysite.com/INDEX.CFM?var1=SERVICES&var2=LOANS[/url]





    J dubya Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139