Home > Weblog Archive >  2007 >  April >  7


       

Question for htaccess experts

Saturday, April 07, 2007 by Dave Winer.

I have some documents in a site with no suffixes, like this: Permalink to this paragraph

http://somesite.com/utah
http://somesite.com/georgia
http://somesite.com/arizona
 Permalink to this paragraph

And I want to redirect them to: Permalink to this paragraph

http://somesite.com/utah.html
http://somesite.com/georgia.html
http://somesite.com/arizona.html
 Permalink to this paragraph

I tried the obvious thing in an htaccess file: Permalink to this paragraph

Redirect /utah http://somesite.com/utah.html
 Permalink to this paragraph

But it generates an infinite series of redirects. Makes sense when you think about it -- Apache is not exactly redirecting urls, but patterns. Permalink to this paragraph

I thought maybe RedirectMatch would be the right way to go, but it's not clicking. Permalink to this paragraph

How do you handle a situation like this?? Permalink to this paragraph

Please post a comment if you know. Thanks!! Permalink to this paragraph





© Copyright 1994-2007 Dave Winer Mailto icon.

Last update: 4/26/2007; 12:45:05 PM Pacific. "It's even worse than it appears."

Click here to view blogs commenting on  RSS 2.0 feed.