From: Casimir P Date: 2007-11-04T22:05:03+09:00 Subject: Re: Eruby - How to get my grubby mittens on the URL? On Sat, 03 Nov 2007 08:23:39 -0500, jan.svitok wrote: > On 11/3/07, Casimir P wrote: >> On Thu, 01 Nov 2007 15:42:59 -0500, justincollins wrote: >> >> > Casimir P wrote: >> >> >> How can I get the url string of the page? >> > >> > puts ENV.inspect >> > >> ie.: <% puts ENV["REQUEST_URI"] %> >> >> Now, if I only could figure out how to redirect *all* requests to one >> and the same .rhtml in the site root without actually rewriting the url >> user sees... Already caused a few infinite redirect loops 8) > > For an Apache example, see any rails application (even an empty one), go > to /public/ and read .htaccess Afaik rails != eruby, but yeah, .htaccess redirects is how I managed the infinite redirect loops 8) something like "RedirectMatch (.*) pageengine.rhtml" etc. :) Just want the user and spiders to see /pagename/ while in fact all requests are handled by one file at the root.. But this is sorta offtopic so I guess I'll take this to regexpo or apache group if I dont get it working on my own. Thanks for the input, everybody. Csmr -- Casimir P Art Portfolio: http://csmr.dreamhosters.com