Ok, thanks everybody who replied. Turned out google did have the
solution after all (they always do, don't they?) This is on DreamHost
and I didn't even know the failed_auth.html request existed, but I
tried to remove that and it breaks, so here is the solution:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html)/?(.*)$ [NC]
RewriteRule ^.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Matias Gertel
Freelance Web Development & Coding
e: [email protected]
m: +64 21 288 8840
p: +64 9 838 3367
On 5/05/2009, at 9:13 AM, Rex Johnston wrote:
Matias Gertel wrote:
> Any mod_rewrite expert?
I'm not sure such as thing exists. If it does, i'm certainly not it.
> I have an .htaccess file in a domain redirecting all requests to the
> index page, a standard rewrite for any modern CMS. It looks like this:
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
Try inserting this here...
RewriteRule stats\/.* - [L]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.*)$ index.php/$1 [L]
> </IfModule>
Cheers, Rex
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---