Recent Topics

1 Nov 27, 2007 04:42    

My b2evolution Version: 1.10.x

I've got several new blogs at www.softwarefemme.com. One in particular, www.thewildlifeporch.com, was previously an informational website I'm converting to a blog.

What I want to do is map old .html from the website to a particular category in the blog, so that if an old user or search engine hits

http://www.thewildlifeporch.com/squirrel_basics_websites.html

it gets redirected to

http://www.thewildlifeporch.com/?cat=43

All blogs are installed to the web root; NO "/blogs/" subdirectory.
The Wildlife Porch is referenced by absolute url with an "explicit reference to a stub file" where the stub file listed is blank.

An Apache rewrite doesn't seem to do the trick (at least my attempt) -- b2e just catches the absolute url and legitimately doesn't recognize the "squirrel_basics_websites.html" portion.

Any ideas?

Thanks,

Cindy Rae

2 Nov 27, 2007 18:13

You need to do a 301 redirect ;)

¥

3 Nov 28, 2007 22:38

I did try a 301 redirect, but my many previous attempts were incorrect.

After much fussing with RedirectMatch (the "?" kept getting escaped), I switched to a Rewrite, using

"RewriteEngine On" and "RewriteBase /"

One example:

"RewriteRule butterfly_.*\.html http://www.thewildlifeporch.com/?cat=41 [R=301,L]"

This line works great.

Thanks,

Cindy Rae


Form is loading...