Re: RewriteCond / rule for mod_rewrite

From: Date: Tue, 12 Jan 2010 17:01:33 +0000
Subject: Re: RewriteCond / rule for mod_rewrite
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-301025@lists.php.net to get a copy of this message
On Tue, 2010-01-12 at 08:49 -0500, John Corry wrote: > I have this in my .htaccess file (for a Magento installation). > > ############################################ > ## never rewrite for existing files, directories and links > > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-l > > ############################################ > ## rewrite everything else to index.php > RewriteRule .* index.php [L] > > The client just asked for a wordpress installation. I installed and set it > up in /blog. > > But when I request /blog in my browser, I get an endless redirect error. > > ??? > > Anyone care to offer help with why? > You shouldn't if this is all that's in your .htaccess file. Is there one in the blog directory, and just to be sure, is the WordPress directory called 'blog' and are you typing in the correct letter case? Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#301025) next »