Forum: Ruby clean urls, without directory structures....not sure what it

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
taelor (Guest)
on 2007-08-01 03:09
(Received via mailing list)
I have just recently learned the practice of clean uri/urls, combined
with ruby's string manipulation is a great way to pass open/
insensitive data. right now i have just one page, that controls my
whole site, except for index files that just pass the directory that
its located in to the one page that controls the whole site based on
the url address.

I find myself having to write scripts to make directories and copy the
same index page over and over and over.

I think a more elegant solution would be to handle any uri/url without
having the directory structure below.

Now I do know that maybe I'm posting in the wrong place and should be
at the local web server forum, but it probably still has to do with
some sort of apache/ruby based configuration? Maybe in the Add
Handlers section?

I tried searching some things, but I couldn't come up with the name of
this design pattern, or which site I think used it.

Thanks for any help,
taelor
Sam M. (Guest)
on 2007-08-01 05:09
(Received via mailing list)
On 8/1/07, taelor <removed_email_address@domain.invalid> wrote:
>
> I think a more elegant solution would be to handle any uri/url without
> having the directory structure below.
>

Take a look at your .htaccess file. You could easily set up some rewrite
rules that redirect everything to a particular file. In your case, to
your
index page.
This topic is locked and can not be replied to.