Forum Moderators: phranque
I think this would be the starting point..unless I'm wrong :)
RewriteEngine on
RewriteRule ^(.+)-keyword$ /$1-keyword [L]
once again, any help would be greatly appreciated.
This capitalization problem is a big one. Mod_rewrite can be used to fix it, but it is only reasonably efficient if you put the code in httpd.conf. In httpd.conf, you can use mod_rewrite's RewriteMap directive to do case-conversion; see the example given in the Apache mod_rewrite RewriteMap documentation [httpd.apache.org].
In .htaccess, this function is not available, and you basically have to have 26 RewriteRules -- one for each capital letter, and run the URL through those rules repeatedly until all capital letters are converted to lowercase. This is horribly inefficient, and I would not recommend it on any site that gets more than a few thousand visitors a day.
You can also look into mod_speling [httpd.apache.org], which can "look up" closely-related URLs if the requested URL is not valid. This is only good for correcting capitalization and a few incorrect characters in each URL, though.
Jim
[edited by: jdMorgan at 5:51 am (utc) on May 3, 2005]
Looks like I need to wait and see (GoogleBot already found tons of 404s) and then manually redirect those with IBL.
thanks again,