Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Canonicalization: best code to redirect no-www to www & index to /


lucy24 - 11:00 pm on Oct 15, 2012 (gmt 0)


the .* seems pretty typical I thought.

Yup: In questions, not in answers.

I'm finding that we have posted the right answer so many times, that Google now treats them all as Duplicate Content and prefers to show all the various versions of wrong answers instead.

Hee. This is where I usually quote Tolstoy: Correct answers are all alike. Incorrect answers are all incorrect in their own way.

Do you need all that, uhm, stuff when looking at %{THE_REQUEST}? I just say index\.html and that's it. I guess there's a remote chance the words "index.html" could show up in a query string in some context that doesn't cause the requested URL itself to say "index.html" but, uhm, trying to think how that might work will simply give me a headache.

every week for the last ten years

Memo to self: cite number 520, not 3650, when needed.

no $ sign after the php?

$ means "at the very end of the utterance", as ^ means "at the very beginning", so they have no meaning anywhere else. You might be thinking of \b but that's not necessary here.

On the plus side, it only took me about 12 hours to figure out why one small innocuous SSI refused to play nice on the live site while it worked fine on MAMP, and other more complicated includes-- including the newly constructed php ones-- behaved identically in both places. And I didn't even have to ask anyone.


Thread source:: http://www.webmasterworld.com/apache/4508251.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com