[WordPress]海外サーバー移転したらPressThisができなくなった。

1年ぐらい使用していたサーバー屋さんが辞めるとの事で、仕方なく移転を決意。
どこにしようか迷ったのだが、海外サーバーを借りて見ることにした。スピードが気になるけどコスパがいいので、取り敢えず使ってみることにした。

旧サーバーのPHPMyAdminでDBをExport、FTPでWordpressとメディアをバックアップして、DNSを変更。
1日待って、新サーバーのPHPMyAdminにImportして、FTPでWordpressをアップ。
仕方ないのかもしれないけど、FTPに時間がかかる。ドメインが同じだし、ディレクトリ構成も同じなので、これで移転完了。

で、いつものようにPressThisで投稿しようとしたら、PressThisのウインドウにトップページが表示され、404NotFoundになる。なぜ?

「困った、困った、困ったときのグーグル検索」

参考:Press This Codex

Technical Note
When I use Press This sometimes a get a NOT FOUND page. I just change the address from u=http%3A%2F%2F to u= and it works fine. I do notice I have to copy and paste the new address in a new tab in firefox when doing this.

End users can edit the properties of their bookmark to alleviate the 404 Not Found problem. In your browser bookmarks folder or on the bookmark bar, right-click the Press This bookmark, select Edit or Properties, and then change this:

u=‘+e(l.href)+‘

to this:

u=’+e(l.href.replace(/\//g,’\\/’))+’

u='+e(l.href.replace(/\//g,'\\/'))+'

PressThisのコードを変更すればいいらしい。
コードを変更したらあっさり復活しました。

海外サーバー(英語)特有のエラー?かもしれませんね。
日本語のWordpressは日本のサーバーで使用しろということなのでしょうかね。

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)