[CRE Loaded] Hacked CRE Loaded SEO URLs

Thinking about purchasing? Feel free to post any questions you may have prior to purchasing.
uruiamme
Posts: 2
Joined: Mon Dec 22, 2008 8:36 pm

[CRE Loaded] Hacked CRE Loaded SEO URLs

Postby uruiamme » Mon Dec 22, 2008 8:49 pm

I use CRE Loaded, and I installed SEO URLs on it. Back then, your product did not go deep enough for one of my websites, so I never tried it.

In any case, I hacked the CRE Loaded SEO URLs to generate what I determined was a better-looking replacement character for special characters and spaces. I have seen dashes, pluses, and some really bad choices. But I chose the period. So here is a sample URL for my store:

http://www.example.com/Parts...Supplies/c3/p22/100.Disc.Set.for.kids/product_info.html

Notice that there are three periods in a row where there used to be an Ampersand.

So did I do a bad thing? I guess my URLs are somewhat unique, but I don't think it should be too far-out. What can we do? Will my old URLs be 404 errors?

And yes, I can't stand the stupidity of the CRE Loaded version of what they call SEO URLs. They are terrible, and any simpleton will see that they generate many different URLs for the same product for no apparent reason. It's aggravating.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [CRE Loaded] Hacked CRE Loaded SEO URLs

Postby inveo » Tue Dec 23, 2008 6:57 am

If you place your old Rewrite Rules to newly generated .htaccess file, all you old URLs will be redirected to new locations automatically by Magic SEO URL.

uruiamme
Posts: 2
Joined: Mon Dec 22, 2008 8:36 pm

Re: [CRE Loaded] Hacked CRE Loaded SEO URLs

Postby uruiamme » Tue Dec 23, 2008 1:35 pm

I guess that will work, although my hack didn't include any changes to the .htaccess, I don't think. Looking back, here are the relevant lines I edited in the seo.php file:

Code: Select all

# OLD-LINE $space_replacement = '-';  // this is done for backward compatibility...
    $space_replacement = '.';  // this is done for backward compatibility...


Code: Select all

  $original = array('%', ':', '/', '?', '#', '[', ']', '@', '!', '$', '&', "'", '(', ')', '*', '+', ','. ';', '=');
#OLD-LINE  $entities = array('%25', '%3A', '%2F', '%3F', '%23', '%5B', '%5D', '%40', '%21', '%24', '%26', '%27', '%28', '%29', '%2A', '%2B', '%2C', '%3B', '%3D');
  $entities = array('.', '.', '.', '.', '.', '.', '.', '.', '.', '.', '.', '.', '.', '.', '.', '.', '.', '.', '.');


I guess my method is not a two-way street, since all characters get the same replacement. But I like it and it seems to work. But I really hate URLs with percent-hacks for all of those characters. It looks pretty stupid to me, since these URLs can be in fact anything I want them to be. I am pretty hacked off that there are still SEO URLs that end in "product_info.html" for no rhyme or reason except to pretend that they are like a website from 1996. But at least it is better than the osC way!!