• Resolved BayTheMoon

    (@baythemoon)


    My wp blog is in a sub-directory and it works fine except:

    I want to have my home url set to: http://www.baythemoon.com
    and my wp blog url set to http://www.baythemoon.com/blog

    I know I have to copy the index.php and .htaccess to the root and modify the index.php. I have copied them and tried all sorts of changes to the php file, but the result is always Page Not Found. It is because I don’t understand the bold part of the following instruction:

    Change the line that says:
    require(‘./wp-blog-header.php’);
    to the following, using your directory name for the WordPress core files:
    require(‘./wordpress/wp-blog-header.php’);

    Can some kind soul tell me what it should be?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Create a page called Blog. Then Create a page called Home. Go to reading setting and change the Front page displays to a static page and select home from there. put the post page as blog.

    Most likely you’ll have two pages called Home now, delete the one that you don’t want and make sure the one that you are keeping is the appropriate page.

    No coding needed and leave the core files alone.

    Thread Starter BayTheMoon

    (@baythemoon)

    Shiraz. Thanks for the response.

    Will doing this allow users to see a link that takes them back to the main site, instead of what it does now, which is return them to the blog home page?

    Thread Starter BayTheMoon

    (@baythemoon)

    Inet
    Not sure what that page means. All I want is for users to be able to click the existing link called Home, to leave the blog and go back to the site, one directory up. The installation docs say it can be done, by changing the index.php page as described in my OP.

    Change the line that says:
    require(‘./wp-blog-header.php’);
    to the following, using your directory name for the WordPress core files:
    require(‘./wordpress/wp-blog-header.php’);

    Can some kind soul tell me what it should be?

    If you using wordpress from directory you will need to chnage that line 17 with folder name (wordpress)you installed wordpress in.

    In Settings General you will need to have Home urls as your domian name and site url where wordpress folder and file are

    Thread Starter BayTheMoon

    (@baythemoon)

    Thank you for your responses guys. I wasn’t able to do it as the WP guide say. However, as is so often the case, I found a very simple solution; I just created a menu and put in a link to my site home page. Sorted. Now I shall just wipe away the tears of frustration and get on with my life.
    ;0)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can someone complete this line of code please?’ is closed to new replies.