Seo and lowercase urls

Hi,

I’m trying to get all my urls lowercase, …with out much sucess.

eg.
If i try changing the seo url of a category from (which for all would be a lot of work)
Shelves to shelves

delete tmp, and update views.
It still shows up in the url as Shelves

Theoretically i could add this to the htacess
RewriteEngine On
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]

which would also do the trick.
Unfortunately for me, oxid htaccess is already so full, i cannot find where to add it, so that it does not break it.

Anyone got any suggestions, about how i can get all my urls lowercase please :slight_smile:

Maybe you can find some german help out there. there isnt much help to get in english:
http://translate.google.com/translate?sl=de&tl=en&js=n&prev=_t&hl=da&ie=UTF-8&eotf=1&u=http%3A%2F%2Fforum.oxid-esales.com%2Fshowthread.php%3Ft%3D4958

i still personally thing that this should be a standard choice available in admin.
ie url’s only lowercase

But ignoring that point for the moment.
The simplest way i found to give me my result, although its definately a bit of a hack.

Anyway, first in the database (make a copy of your oxseo table) and then

UPDATE oxseo SET OXSEOURL = lower(OXSEOURL);

Then i’ve edited admin/shop_seo.php, and just added the strtolower

protected function _cleanupUrl( $sUrl )
{
    // replacing & to & or removing double &&
    while ( ( stripos( $sUrl, '&' ) !== false ) || ( stripos( $sUrl, '&&' ) !== false ) ) {
        $sUrl = str_replace( '&', '&', $sUrl );
        $sUrl = str_replace( '&&', '&', $sUrl );
    }
    $sUrl = strtolower($sUrl);

    // converting & to &
    return str_replace( '&', '&', $sUrl );
}

Then deleted tmp, and updated views, and it seems to be working

Great. Worth packing it into a module and publishing it on GitHub, isn’t it.

Cheers