• Hi,

    My site was originally installed into the root directory of my domain and working OK.

    I needed to move it to a sub-directory per the instructions here – https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory.

    After the move everything is still working OK – accept the Google description in search results.

    When my site now appears in Google’s search results – it no longer displays any of the info entered into Yoast SEO on my home page – instead it simply shows the text from the index.php file copied into the root directory as part of the move.

    Eg

    mysite.com
    https://www.mysite.com

    Front to the WordPress application. This file doesn’t do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme.

    Does anyone know what I did wrong in the process – and how to fix it please?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The index.php file just below the three main WordPress folders seem to be broken. Just check if it has the opening tag and other elements.

    Thread Starter indexhtml

    (@indexhtml)

    Hi Krishna,

    Thank you for your reply – but the index.php file in the root directory seems OK – please see below –

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./goldcoast/wp-blog-header.php');

    What do you have in your robots.txt file?
    Can you post a link to your site?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google description from index.php file after moving site to sub directory’ is closed to new replies.