MarkOly - 11:48 pm on Jul 25, 2013 (gmt 0)
Do rules 10 and 11 really work as you expect? At first glance, the patterns look ambiguous and prone to mismatching.
Yeah, the rules do actually work. I copied them from this thread here: [webmasterworld.com...] - jdMorgan's last post. I did want to put a RewriteCond in #11 due to the (.*). I couldn't come up with it though. It was easy to come up with the RewriteCond for #8 because I basically just regurgitated the RewriteRule. But with a (.*), that's hard to regurgitate. I gave up eventually.
I think rule 13 is in the wrong place/wrong order.
I searched for examples where that rule was mixed in with a few others and just couldn't find it. The https to http discussion seems to occur in a vacuum. So the logic I applied, I looked at all the rules I had already. (#13 was the last rule I made.) All of those rules were already converting https to http on their own. The only https to http hole I had was on actual valid pages. So I had to come up with a rule for that. Since the other rules already convert https to http by default, the only logical place to put #13 seemed to be at the end, right before the internal rewrite rule. Is that flawed? Yeah, I think I do need to do more testing. When I did test in Xenu, I created alot of text files to test. But I didn't take the approach where I was looking at my rules and testing them specifically, especially for correct order. I'll have to try that.