[thelist] New lister question about .htaccess and redirects

Kelly Hallman khallman at wrack.org
Tue Sep 23 04:51:33 CDT 2003

On Tue, 23 Sep 2003, John C Bullas wrote:
> to route all calls for <single a-z character>.html ANYWHERE AND
> <single a-z character>.htm anywhere but http://www.ime.org.uk/ime/ to
> the <single a-z character>.htm in directory /ime/

Now that I think about it, I see why you say "anywhere but" ..
because this may cause looping? So maybe this would do the trick:

RewriteEngine On
RewriteRule ^/ime/([a-z])\.html?$ /ime/$1.htm [L]
RewriteRule /([a-z])\.html?$ /ime/$1.htm

(Also note corrected literal \. from original below)

On Tue, 23 Sep 2003, Kelly Hallman wrote:
> RewriteEngine On
> RewriteRule /([a-z]).html?$ /ime/$1.htm

Kelly Hallman

More information about the thelist mailing list