Be nice to people named 'pg'
Remove /pg/ even if Elgg is installed in a sub-directory of the site
bleh. Fix replacement
Fixes #5238: More reliably redirect URLs with /pg/
Merge pull request #5276 from mrclay/pr5238

Fixes #5238: More reliably redirect URLs with /pg/