On Oct 26, 3:32 pm, Rainer Sokoll <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 26, 2007 at 02:26:07PM +0300, Jani Tiainen wrote:
> > > RewriteEngine On
> > > RewriteRule ^/(.*)$ /index.fcgi/$1 [R]
> > > ps: I'm not root on the machine
>
> > That's problematic if rewriting is disabled...
>
> What about
>
> RedirectMatch permanent ^/(.*)$http://www.example.com/index.fcgi/$1
>
> ?
>
> Rainer
Then it will redirect to:
http://trac.cvds.ro/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/index.fcgi/phpdrone
till it will fain with:
The page isn't redirecting properly
:)
I found an almost good asolution:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.fcgi/$1 [R]
This will redirect every 404 to /index.fcgi, and in this way:
http://trac.cvds.ro/phpdrone
will be redirected to:
http://trac.cvds.ro/index.fcgi/phpdrone
and all the non-existing non-project-name request will be treated with
a Trac-project-not-foud error, which is almost perfect,
except that i can see the /index.fcgi/ in the URL :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" 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/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---