On Sep 13, 2006, at 9:22 AM, Dave Crossland wrote:

> On 12/09/06, John W. Long <[EMAIL PROTECTED]> wrote:
>> Dave Crossland wrote:
>>> So ideally I want Apache to serve files that exist, and any that 404
>>> to pass to Radiant to serve or acutally 404.
>>>
>>> Is this possible?
>>
>> Yes. It should be working this way by default.

<snip>

> #
> # Radiant Rewrites
> RewriteCond %{REQUEST_URI} ^/robots.txt.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/favicon.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/stylesheets.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/javascripts.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/images.*
> RewriteRule .* - [L]

I dont think these are really necessary if the Rewrites below are  
configured properly

> # UKTUG Rewrites
> RewriteCond %{REQUEST_URI} ^/Activities/.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/Audio/.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/Baskerville/.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/Committee/.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/Constitution/.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/Membership/.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/Resources/.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/Spreadsheets/.*
> RewriteRule .* - [L]
> RewriteCond %{REQUEST_URI} ^/TUG/.*
> RewriteRule .* - [L]

If the stuff in these directories is all static files (even php  
files) then you can probably get away without it

> # For Phil Taylors site archive
> DirectoryIndex Index.html
>
> # Redirect all requests not available on the filesystem to Rails
> # By default the cgi dispatcher is used which is very slow
> #
> # For better performance replace the dispatcher with the fastcgi one
> #
> # Example:
> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

^^^^^^^^^^^^^
This is probably the line that is giving you grief. it says redirect  
all requests (apart from those in the above directories) to the rails  
dispatcher. Delete it or comment it out, as you can just use the one  
below

> # If your Rails application is accessed via an Alias directive,
> # then you MUST also set the RewriteBase in this htaccess file.
> #
> #
> # Example:
> #   Alias /myrailsapp /path/to/myrailsapp/public
> #   RewriteBase /myrailsapp
>
> RewriteRule ^$ index.html [QSA]
> RewriteRule ^([^.]+)$ $1.html [QSA]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

Good luck! mod_rewrite is sometimes just black-magic :)

Bodhi
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to