url surrogate
Posted: Tue Jul 09, 2013 12:12 am
I'd like to automatically add a parameter to the links of a certain website by using the surrogate feature.
Example:
Clicking an internal link of a wordpress blog it always redirects from http://www.example.net/blogentry/ to http://www.example.net/blogentry/?ModPagespeed=noscript
To avoid annoying redirections, how do I write a surrogate to add that "?ModPagespeed=noscript" parameter to the url links of that specific site?
I was looking into the "noscript.surrogate.glinks.replacement" surrogate trying to understand how it works. But unfortunately that one removes parts of the url rather than adding stuff, so it wasn't of great help.
Example:
Clicking an internal link of a wordpress blog it always redirects from http://www.example.net/blogentry/ to http://www.example.net/blogentry/?ModPagespeed=noscript
To avoid annoying redirections, how do I write a surrogate to add that "?ModPagespeed=noscript" parameter to the url links of that specific site?
I was looking into the "noscript.surrogate.glinks.replacement" surrogate trying to understand how it works. But unfortunately that one removes parts of the url rather than adding stuff, so it wasn't of great help.