WordPress.org

Ready to get started?Download WordPress

Forums

Changing wordpress directory to root (6 posts)

  1. laurenrene
    Member
    Posted 8 years ago #

    Warning, I'm VERY new to all of this. But, I was trying to change the URL to access my wordpress journal from http://www.laurenrene.com/wordpress to http://www.laurenrene.com

    I went through this: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory but I could not get it to work. My hang up was that it said:
    Change the following and save the file. 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');

    except...I can't find that string in my index.php file at all. I made sure I was looking at the right one, and i scoured it for those words, but they're no where to be found. Am I doing something wrong?

  2. Nazgul
    Member
    Posted 8 years ago #

    What version of WordPress are you using? Because my index.php does contain that line:
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

  3. laurenrene
    Member
    Posted 8 years ago #

    I'm using the lately version. I just downloaded it a few days ago. I'm using a theme called Maple. Here's the beginning code that I show in my index.php:

    <?php
    get_header();
    ?>

    <body>
    <div id="rap"> <!--div rap starts-->
    <div id="masthead"> <!--div masthead starts-->
    <h1 id="header">"><?php bloginfo('name'); ?></h1>
    <div class="slogan"><?php bloginfo('description'); ?></div>
    </div> <!--div masthead ends-->
    <div id="hmenu"> <!--div hmenu starts-->
    <div id="hnav"> <!--div hnav starts-->

    <?php include (TEMPLATEPATH . '/horizontal.php'); ?>

    </div> <!--div hnav ends-->
    </div> <!--div hmenu ends-->
    <div id="main"> <!--div main starts-->

  4. Nazgul
    Member
    Posted 8 years ago #

    Wrong index.php. :)

    You should be editing the index.php from WordPress, not the index.php for your theme.

  5. laurenrene
    Member
    Posted 8 years ago #

    oh wait- I figured it out! But i do thank all of you here in the forums who try to help us numbskulls at figuring all of this out. You guys are great! Hopefully someday I'll be able to help someone at this stuff too

  6. laurenrene
    Member
    Posted 8 years ago #

    haha- that's EXACTLY what I was doing wrong. See? I haven't the slightest idea what I'm doing, but I'm learning every time I try something new, and its enjoyable. Thank you for your time!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags