lucy24 - 11:10 pm on Aug 22, 2013 (gmt 0)
These three items can be combined in a single line; that's what the + is for. When you say Options +Indexes do you mean Options -Indexes? I don't see many sites that want to enable auto-indexing by default in all directories.
RewriteRule ^print/([^.]+)/([^.]+)\.shtml$ http-//www.domain.com/print/$1-$2.shtml [L,R=301]
RewriteRule ^([^.]+)/([^.]+)\.shtml$ http-//www.domain.com/games/$1-$2.shtml [L,R=301]
I was going to say http- is a typo for http: and then I realized you did it to prevent auto-linking. That's one reason you should use example.com. It can be example.some-other-tld if you need to name more than one domain.
In patterns like this
you almost certainly want
instead. Otherwise you'll be capturing requests like
Even requests for
will involve backtracking. "Oh, oops, I was supposed to leave room for a / slash, why didn't you say?"
you probably need a RewriteCond to prevent the last RewriteRule from firing when the requested path already begins with "/games/".
Or change the pattern itself to something like
Use this form if you only have a few top-level directories.