.htaccess rewrite causing infinite loop

I am trying to do the following redirection on my site:

to go to www.allinforwishes.com/pictures/2010-event-winners

I have tried the following in my .htaccess file:

redirect 301 /pictures/         /pictures/2010-event-pictures

This caused an infinite loop. I then tried the following:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^allinforwishes.org/pictures/
RewriteRule (.*) http://www.allinforwishes.org/pictures/2010-event-pictures$1 [R=301,L]

This did nothing.

Any ideas???


Is 2010-event-winners a file or a subdirectory of pictures? If it’s a subdirectory, WHY does it not have a trailing /?

Because of my penchant on falling back on mod_rewrite, I would use

RewriteEngine On
[COLOR="Gray"]RewriteCond %{HTTP_HOST} ^allinforwishes.org/pictures/[/COLOR]
# The directory will NEVER be in cluded in the {HTTP_HOST}
# AND that's irrelevant to the redirection

# This is just plain loopy - good thing it can never be used in a redirection
RewriteRule (.*) http://www.allinforwishes.org/pictures/2010-event-pictures$1 [R=301,L]
# That merely sends EVERYTHING (including pictures/2010-event-pictures to itself
# What you want is to redirect pictures/ (or pictures/index.php
# - if that's the DirectoryIndex) to pictures/2010-event-pictures
# (whether it's a file or a directory).
RewriteRule ^pictures/(index\\.php)?$ pictures/2010-event-pictures [R=301,L]
# OR
RewriteCond %{REQUEST_URI} !pictures/2010-event-pictures
RewriteRule ^pictures(.*)$ pictures/2010-event-pictures$1 [R=301,L]

You might benefit from reading the mod_rewrite tutorial linked in my signature as it contains explanations and sample code. It’s helped may members and should help you, too.