Support » Asennus » WP:n siirto alikansiosta palvelimen juureen

  • Nyt tarvitaan rautalankaohjeita:

    Mulla on toimiva web-sivusto domainin alikansiossa (cPaneeliin on myös tunnukset). Miten saan siirrettyä wordpressin palvelimen juureen (public html:ään)? Eli mitä kaikkea pitää tehdä ja missä järjestyksessä. En onnistunut englanninkielisten ohjeiden kanssa.

    ps. olen nyt ottanut kopionut alikansion kaikki tiedo filezillalla ja siirtaänyt ne public htm-kansioon, mutta nyt kun koitan päästä kirautumaan wordpressiin, niin sivu ei avaudukaan. Tulee ainoastaan täysin blankko sivu. Onko tietokantamääristykset jotenkin muuttamatta?

Esillä 3 vastausta, 1 - 3 (kaikkiaan 3)
  • Thread Starter jhh78

    (@jhh78)

    Ei vaan onnistu…
    1. Otin kopion indexistä juureen ja tein muutoksen /wordpress/ polun eteen
    2. Ny kun yritän mennä admin-paneeliin, niin antaa virheen 404 ja
    itse julkisella puolella sivun määritelmät on metsässä (ulkoasumäärityksiä puuttuu)
    3. Ja kun oan indexin pois juuresta, niin kaikki pelaa ok /wordpress/ alikansion alta

    Mikä vialla?

    ————————————-

    Using a pre-existing subdirectory install

    If you already have WordPress installed in its own folder (e.g., http://example.com/wordpress), then the steps are as follows:

    Go to the General panel.
    In the box for Site address (URL): change the address to the root directory’s URL. Example: http://example.com
    Click Save Changes. (Do not worry about the error message and do not try to see your blog at this point! You will probably get a message about file not found.)
    Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress (wordpress in our example) directory into the root directory of your site—the latter is probably named something like www or public_html. The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you’ll have a web.config rather than a .htaccess file in your WordPress directory.
    Edit your root directory’s index.php.
    Open your root directory’s index.php file in a text editor
    Change the line that says:
    require( dirname( __FILE__ ) . ’/wp-blog-header.php’ );
    to the following, using your directory name for the WordPress core files:
    require( dirname( __FILE__ ) . ’/wordpress/wp-blog-header.php’ );
    Save the file.
    Login to your site (if you aren’t still already). The URL should still be http://example.com/wordpress/wp-admin/
    If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can’t write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)

    WordPressin asetuksista pitäisi korjata sivuston osoite. MySQL:llä muokkaat taulua wp_options ja sieltä fiksaat ne kaksi kohtaa, joissa esiintyy sivuston osoite, niin voi toimia jo paremmin.

    Thread Starter jhh78

    (@jhh78)

    Kiitos paljon. Nyt toimii.

Esillä 3 vastausta, 1 - 3 (kaikkiaan 3)
  • The topic ‘WP:n siirto alikansiosta palvelimen juureen’ is closed to new replies.