Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- A guide to fixing duplicate content & URL issues on Apache


jdMorgan - 9:07 pm on Jan 6, 2007 (gmt 0)


Well, your post in one of those Google forum threads was one of my incentives to finish this, so Thanks!

Note to all: I have updated the initial post with several changes.

It turns out that the same Apache mod_rewrite bug that requires this code to be so complex (compared to single rewrites and redirects) on Apache 1.3.x also exists on Apache 2.0.x. I have changed the comments to reflect this.

I also incorporated a few code changes: One already mentioned above, another to support correction of multiple instances of multiple contiguous slashes in one URL, and another to fix an error in an [S=] flag skip count that was introduced when I 'sanitized' this code from my server for posting here.

Jim


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