Hallo Gemeinde -
auf einer "Baustellen-Seite" habe ich meine WP-Seite gestaltet, um sie danach auf die korrekte Domain umzuziehen.
Baustelle: http://www.css-baustelle.de
domain: http://www.css-online.com
Nun speichert WP ja absolute links, und um nicht alle links auf der endgültigen Seite umzuziehen, habe ich mittels SQL entsprechende Anpassungen vorgenommen, um den domain-namen umzustellen und alle links auf einmal zu korrigieren.
[FONT=inherit]
ZitatTo update WordPress options with the new blog location, use the following SQL command:[/FONT]
[FONT=inherit]UPDATE wp_options SET option_value = replace(option_value, ‘http://www.old-domain.com%e2%80%99, ‘http://www.new-domain.com%e2%80%99) WHERE option_name = ‘home’ OR option_name = ‘siteurl';[/FONT]
[FONT=inherit]After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. The URL values in this field are stored as absolute URLs instead of relative URLs, so it needs to be changed with the following SQL query:[/FONT]
[FONT=inherit]UPDATE wp_posts SET guid = replace(guid, ‘http://www.old-domain.com%e2%80%99,%e2%80%99http//www.new-domain.com%E2%80%99);
Die URL´s werden nun auch korrekt angezeigt wenn ich auf einen beliebigen link klicke, dennoch erscheint mir auf der Zielseite ein 404-Fehler. Permalinks in WP sind auch korrekt.
Hat jemand eine Idee?[/FONT]