Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #987462

    When I first installed Sentence, I put the files into a subdirectory of my public_html directory. The directory was called wp2. But, except for the front page of the site, all the URLs had wp2 in them. I wanted to simplify the URLs, getting rid of that wp2. So, I copied all my WP files directly into my public_html folder. I then changed the database to point to the new location. And, finally, I changed the path to load the them and WP files in my index.php file:

    
    /** Loads the WordPress Environment and Template */
    require('./wp2/wp-blog-header.php');
    

    to

    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php'); 
    

    deleting the wp2 in the all to wp-blogheader.php and renaming the wp2 subdirectory to see if the site would load.

    But, when I did that, the site failed to load and I got this error:

    
    Warning: require(./wp2/wp-blog-header.php): failed to open stream: No such file or directory in /home7/outtacon/public_html/index.php on line 28
    
    Fatal error: require(): Failed opening required './wp2/wp-blog-header.php' (include_path='.:/opt/php70/lib/php') in /home7/outtacon/public_html/index.php on line 28
    
    #987479

    Hi,

    From the error it seems like index.php file was not updated. Could you please post FTP logins here privately so we can look into it?

    Best regards,
    Yigit

    #987492
    This reply has been marked as private.
    #988396

    Hi,

    I couldn’t connect to your ftp server (several timeout errors). However in order for your site to reflect your new file path, you need to update your index.php file. Select the one that you copied to the root of your site, download it and open it up with a text editor.

    Find these lines toward the bottom of the file (note [YOUR PATH] is just a placeholder and can vary):

    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '[YOUR PATH]/wp-blog-header.php' );
    

    Update /wp-blog-header.php to reflect your new directory. For example, if your new directory is the root folder, you would change the file path from /wp2/wp-blog-header.php to this: /wp-blog-header.php.

    Best regards,
    Dude

    #988455

    Sorry you weren’t able to get in. But, YES! That did the trick. Thank you!

    When testing for the functionality of the newly added SSL, I used whynopadlock.com. It did show a few image URLs were pointed at the wp2 folder. These were URLs for my graphic logo and a couple of other site graphics. Like in the loop-page.php file. I manually changed those to reflect the new directory.

    Again, thanks.

    #988499

    Hi,

    Great, glad I could help you :)

    Best regards,
    Dude

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.