RewriteCond / rule for mod_rewrite
am 12.01.2010 14:49:31 von John Corry
--a4731854230063b798047cf7ecea
Content-Type: text/plain; charset=ISO-8859-1
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?
--
John Corry
PHP developer - 3by400, Inc
http://www.3by400.com
--a4731854230063b798047cf7ecea--
Re: RewriteCond / rule for mod_rewrite
am 12.01.2010 18:01:33 von Ashley Sheridan
--=-zp5QuS6MwQEmGkPSpbl8
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
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
--=-zp5QuS6MwQEmGkPSpbl8--