propublica/Capitol-Words

urls w/ simple bioguide id are broken

Opened this issue · 3 comments

bioguideIDs used to have urls like this:

http://capitolwords.org/lawmaker/C001057/

but now have urls like this

http://capitolwords.org/legislator/C001057-norm-coleman/

i do not know of a simple regex-y way to fix this . GOOG wmt thinks there are 133 broken urls like this . uh this might be a thinker . the problem is that there are outside links that point to these links .

--timball

temporarily i'm gonna make a regex that will leave broken links but just s/lawmaker/legislator/

These are old site references.. Does it even matter?


Dan Drinkard

On Sat, Mar 8, 2014 at 1:18 PM, timball notifications@github.com wrote:

bioguideIDs used to have urls like this:

http://capitolwords.org/lawmaker/C001057/
but now have urls like this
http://capitolwords.org/legislator/C001057-norm-coleman/
i do not know of a simple regex-y way to fix this . GOOG wmt thinks there are 133 broken urls like this . uh this might be a thinker . the problem is that there are outside links that point to these links .

--timball

Reply to this email directly or view it on GitHub:
#77

i don't know ? i'm just going thru all the bugs and issues webmaster tools has for all of our sites .

the regex is in place:

    location ~ ^/lawmaker/ {
        rewrite ^/lawmaker(\/.*) /legislator$1 permanent;
    }

--timball