WordPress.org

Ready to get started?Download WordPress

Forums

Different directory problem (6 posts)

  1. annabloom
    Member
    Posted 10 years ago #

    i assume wp-admin/options-general.php is where you want to go:
    wp-admin | options | general
    wp and blog address both http://benoitbisson.com/blog/
    of course your wp files and dirs should be in /blog/ as well

  2. andrea
    Member
    Posted 10 years ago #

    I have a similar problem to Benoit. I saved my WP files in the wordpress/ folder, and want my blog to live in the root directory. There are no options anywhere in my version of WP (downloaded and installed today) that match "Go to your Options page. It should say your WordPress address and Blog address are the same." I went through all the options links... help.

  3. carthik
    Member
    Posted 10 years ago #

    Instructions for the beta version and upwards (I am not sure about whether particular nightlies support this functionality) :
    1) Install WordPress as you normally would, following the instructions in the http://wordpress.org/docs/installation/5-minute/ installation document.
    Let us assume that your website has the URL http://www.example.com, and that you installed WordPress in the Directory wordpress (http://www.example.com/wordpress/index.php is where your blog homepage is now at), and that you want to have the index.php page (the blog) at the address http://www.example.com/blog
    2) Go to http://www.example.com/wordpress/wp-admin/options-general.php after logging in as the administrator. ('admin' on a fresh installation)
    3) Change the option that reads "Blog address (URI):" to read
    http://www.example.com/blog and click on the "Update Options" button.
    4) Edit the file index.php in the "wordpress" folder on your server, changing the line
    require('./wp-blog-header.php'); to be require('../wordpress/wp-blog-header.php');
    (in short, the above line should specify the relative path to the file named "wp-blog-header.php")
    5) Move the edited file named "index.php" from the "wordpress" folder on your website's server to the folder called "blog", or if you edited index.php after first downloading it to your computer, then uploaded the edited index.php to the "blog" folder that you already created
    6) If you are using rewrite rules for nicer PermaLinks, go to the page http://www.example.com/wordpress/wp-admin/options-permalink.php and enter the desired Permalink structure using the tags and the help on that page, and click "Update Options" to get the new .htaccess rules. Copy the WordPress generated lines from the box, and paste them in a file called .htaccess in the "blog" directory. Create a file called .htaccess if one is not already present in that directory. Use a simple text editor such as notepad or wordpad to create the .htaccess file if you are creating it on your computer.
    7) Sit back and enjoy! Easy does it.

  4. andrea
    Member
    Posted 10 years ago #

    Sigh... I think I'm downwards from the beta version (downloaded it from the Sourceforge link, 1.0.2). I guess it won't work for me.
    Also, I now know my webhost doesn't like us to mess with .htaccess, so I won't be able to sort out the permalinks anyway.
    Ah well.

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    This solution is no good, since you will not longer be able to edit the index.php through the admin interface. Anyone with some thoughts on this?

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    Just wondering if anyone found a solution to this that was mentioned earlier?
    "This solution is no good, since you will not longer be able to edit the index.php through the admin interface. Anyone with some thoughts on this?"

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.