Simple URLs for PostNuke

I got tired of the fact that my site can’t be easily searched on Google and has a poor ranking. Ok, so my site has a poor ranking because no one is linking to it, but deep articles aren’t showing up at all because even if people linked to them, they aren’t linking to the “print” version which is the only think which is cached by Google from Muninn. Only the main page and the “print” version of the articles at Muninn make it to Google’s archive because it ignores the long complex links which PostNuke, which I run Muninn on, uses far too much.

After poking around, many others have had a similar problem. The simplest solution I found here (at another complex URL).

It didn’t work completely because my site uses “&” for ampersands instead of just “&” so I had to modify the code for the replace_for_mod_rewrite and also used the code for this function based on a site that linked to the above article at Aquanuke. In case others have the same problem, try the version of the function below (read more) instead of the one found at those various sites:

function replace_for_mod_rewrite(&$s)
{
$in = array(
"'(?

The other instructions all worked fine.