• I use Bit.ly for my blog posts to place on twitter. Some of the bit.ly links now go to a page on my blog that says Oops That Page Can’t Be Found.
    I had changed the date on some of my posts so that I could change the order they were in. Did that cause the problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yep. If your permalinks are in the form of Day and Name or Month and Name then they would have changed and the Bit.ly link is still pointing to the old one which goes to a Page Not Found.

    If you remember the old dates then you could write rewrite rules in your .htaccess to redirect to the correct place:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^2015/05/26/test-post/$ 2015/05/28/test-post/ [R=301,L]
    </IfModule>

    Unfortunately Bit.Ly doesn’t let you edit the links. At least I can’t find out if you can.

    Thread Starter DonP5151

    (@donp5151)

    Thanks. I don’t remember the dates so I am screwed on that. How can I change the order of my posts without that happening?

    Well, you can still do it this way:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/2015/05/26/test-post/
    RewriteRule ^(.*)/test-post/$ 2015/05/26/test-post/ [R=301,L]
    </IfModule>

    Basically, if the request is the correct link, then don’t redirect; otherwise, redirect to the correct one. With this you don’t need to know the old dates. Need a RewriteCond/RewriteRule pair for each post.

    There probably is a way to change the order your posts are displayed without changing their dates/permalinks. One of these topics might help: https://wordpress.org/search/changing+order+of+posts

    Thread Starter DonP5151

    (@donp5151)

    I had gone to that link 4 days ago. In that link is the one that told me to change the dates as a way to do that. I changed the dates and it did change the order of the posts but it also changed the URL of the posts and screwed up all the bit.ly links I had used for twitter. That is a real bummer as I had sent those tweets to many people. Now all those bit.ly links go to my blog to a page that says “Oops That Page cannot be found”. That is really upsetting. Lot of work down the drain!!!
    Another learn the hard way routine:-(

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Bit.ly link problem’ is closed to new replies.