Risposte nei forum create

Stai visualizzando 3 risposte - dal 1 al 3 (di 3 totali)
  • Chi ha creato la discussione Alessandro Mastrogiacomo

    (@studiomastro)

    Ciao @thomas-vitale
    grazie per la pronta risposta. Scusami ma sono stato via e solo ora riprendo il discoro.
    Il mio caso consiste nel spostare da miosito.com/prova a miosito.com
    Potrei semplicemente cambiare l’url del sito nelle impostazioni, ma ciò mi crea un conflitto che on WPML che smette di funzionare.

    Ora vedendo le guida sembra più o meno tutto chiaro credo che il mio caso sia questo:

    Changing Your Domain Name and URLs
    Moving a website and changing your domain name or URLs (i.e. from http://example.com/site to http://example.com, or http://example.com to http://example.net) requires the following steps – in sequence.

    Download your existing site files.
    Export your database – go in to MySQL and export the database.
    Move the backed up files and database into a new folder – somewhere safe – this is your site backup.
    Log in to the site you want to move and go to Settings > General, then change the URLs. (ie from http://example.com/ to http://example.net ) – save the settings and expect to see a 404 page.
    Download your site files again.
    Export the database again.
    Edit wp-config.php with the new server’s MySQL database name, user and password.
    Upload the files.
    Import the database on the new server.
    When your domain name or URLs change there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.

    If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have four options:

    Use the Velvet Blues Update URLs plugin if you can access your WP Admin Dashboard.
    Use the Better Search Replace plugin if you can access your WP Admin Dashboard.
    Use WP-CLI’s search-replace if your hosting provider (or you) have installed WP-CLI.
    Use the Search and Replace for WordPress Databases Script to safely change all instances on your old domain or path to your new one. (** only use this option if you are comfortable with database administration ** )
    Note: Only perform a search and replace on the wp_posts table.
    Note: Search and Replace from Interconnectit is a 3rd party script

    Giusto? A parte qualche passaggio non proprio chiaro, mi chiedo, non conviene fare pulizia generale sul server e reinstallare da capo, downloadando prima tutto sia dal server che dal DB?

    Grazie!
    AM

    Chi ha creato la discussione Alessandro Mastrogiacomo

    (@studiomastro)

    Ciao @thomas-vitale,

    sto leggendo la guida e anche se tendenzialmente è tutto chiaro, ho una paura matta di buttare all’aria mesi di lavoro.

    Potresti darmi una mano a riguardo?
    Io dovrei spostare il mio sito da:

    miosito.com/prova a miosito.com

    Potrei farlo direttamente dal pannel Admin, cambiando l’indirizzo del sito URL da quello wordpress, ma ciò mi crea conflitto con il plugin WPML che smette di funzionare in front-end.

    Il mio caso è descritto nell’articolo da te linkato ma sembra che possa portare dei problemi:

    Changing Your Domain Name and URLs
    Moving a website and changing your domain name or URLs (i.e. from http://example.com/site to http://example.com, or http://example.com to http://example.net) requires the following steps – in sequence.

    Download your existing site files.
    Export your database – go in to MySQL and export the database.
    Move the backed up files and database into a new folder – somewhere safe – this is your site backup.
    Log in to the site you want to move and go to Settings > General, then change the URLs. (ie from http://example.com/ to http://example.net ) – save the settings and expect to see a 404 page.
    Download your site files again.
    Export the database again.
    Edit wp-config.php with the new server’s MySQL database name, user and password.
    Upload the files.
    Import the database on the new server.
    When your domain name or URLs change there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.

    If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have four options:

    Use the Velvet Blues Update URLs plugin if you can access your WP Admin Dashboard.
    Use the Better Search Replace plugin if you can access your WP Admin Dashboard.
    Use WP-CLI’s search-replace if your hosting provider (or you) have installed WP-CLI.
    Use the Search and Replace for WordPress Databases Script to safely change all instances on your old domain or path to your new one. (** only use this option if you are comfortable with database administration ** )
    Note: Only perform a search and replace on the wp_posts table.
    Note: Search and Replace from Interconnectit is a 3rd party script

    Dici sia questa la strada da percorrere?
    Re-Installare da capo non potrebbe esser meglio?

    Grazie!
    AM

    Chi ha creato la discussione Alessandro Mastrogiacomo

    (@studiomastro)

    Ciao @thomas-vitale
    grazie per la risposta, purtroppo ho avuto un settembre un po’ burrascoso, mi scusa nel ritardo nel risponderti.

    Allora ho dato un occhio agli articoli, il mio vero problema, anche usando semplicemente il caso “Sul medesimo server (da una directory all’altra)”, perchè facendo cosí purtroppo il plug-in WPML smette di funzionare cosí come confermatomi dagli sviluppatori. Quindi non mi basta cambiare l’url nel pannello delle impostazioni, ma dovrei in qualche modo reinstallare/muovere il tutto all’interno dello stesso server.

    Che procedura consigli di seguire…
    Attendo tue, grazie!

Stai visualizzando 3 risposte - dal 1 al 3 (di 3 totali)