Dear Nicholas,
I don't think a rewrite rule will work every time.  For example in my situation, I'm using virtual hosts, so the pylons app really is the root for my server.  Currently when I run this with mod_SCGI I set up the mountpoint to be "/".  I'll try the setup again tonight so see if I can get it workwing
Jose

On 7/10/06, Nicholas Piël <[EMAIL PROTECTED]> wrote:


On Jul 10, 2006, at 11:20 AM, [EMAIL PROTECTED] wrote:

>> Well, i *needed* the SCRIPT_NAME since Apache wasn't able to find it
>> out on it's own and caused a recursion. If you do not want a
>> SCRIPT_NAME you can just remove that line from your .htaccess
>
> If I remove it I get a recursion too. Do you know a way of mounting
> the
> application at the root URL without getting the recursion? It might
> be it
> is a bug and I just have to work through the code which I'm happy
> to do
> unless you know of a solution?

I think i misunderstood your first question. When you want to make
your controller available at the root url. Ie like " http://nichol.as"
instead of "http://nichol.as/imagesearch/flickr" you can use
mod_rewrite like this:

RewriteEngine On
RewriteRule ^[^(imagesearch)](.*)$ /imagesearch/$0
RewriteRule ^$ /imagesearch/flickr

And put in your httpd.conf or in a .htaccess in your web-root.

Good luck!
Nicholas


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to