You want to have "static" links and search engine references to
http://www.carnivalofsong.com/bcl/template3/archivewhich via your
.htaccess turns into
http://www.carnivalofsong.com/bcl/template3.php?page=archiveso you can feed your search program or whatever. Right?
Here's your
.htaccess entry:
RewriteEngine On
RewriteRule ^bcl/([^/]+)/([^/]+)/?$ /bcl/$1.php?page=$2Breaking it down: after stripping off the domain name and a /, match
bcl/. Then grab everything up to, but not including, the next
/ and save it as $1. Match a
/. Grab everything up to, but not including, any next
/ and save it as $2.
If there's a lone
/ on the end, match it. End of pattern. Output
/bcl/, what was saved in
$1,
.php?page=, and what was saved in
$2.
You can adjust this to match anything, so long as you understand how it works. Generally it will require a fixed number of fields (between
/s). You just can't start matching somewhere down the line at 'page' or whatever.