RewriteCond / rule for mod_rewrite

--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--
John Corry [ Di, 12 Januar 2010 14:49 ] [ ID #2028561 ]

Re: RewriteCond / rule for mod_rewrite

--=-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--
Ashley Sheridan [ Di, 12 Januar 2010 18:01 ] [ ID #2028567 ]
PHP » gmane.comp.php.general » RewriteCond / rule for mod_rewrite

Vorheriges Thema: array_count_values Problem
Nächstes Thema: I am not receiving any e-mail from the list...