WordPress.org

Ready to get started?Download WordPress

Forums

removing /wordpress from the url (12 posts)

  1. dunners
    Member
    Posted 5 years ago #

    Hi

    I am currently working on my first wordpress site and was wondering how I amend the url so that it no longer has the /wordpress. It currently is: mysite.com/wordpress

    Do I need to move all of the wordpress files out of the wordpress folder and put them in the root folder?

    Thanks

  2. iridiax
    Member
    Posted 5 years ago #

    There are two options.

    1. You can actually move WordPress to the root:

    http://codex.wordpress.org/Moving_WordPress

    2. You can leave it in the wordpress folder and let it power the root:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  3. dunners
    Member
    Posted 5 years ago #

    Just been trying to follow the Giving Wordpres It's own Directory page - but I can't seem to find the .htaccess file it mentions here:

    # Copy the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address).

    Do you know where I find this file, I've searched through all my folders?

    Thanks

  4. iridiax
    Member
    Posted 5 years ago #

    As for the .htaccess file, there are two possibilities:

    1. You are not using pretty permalinks so you don't have an .htaccess.
    2. The .htaccess file is invisible by default and you have not set up your ftp program to show invisible files. If you have an .htaccess, it is in your wordpress folder.

  5. dunners
    Member
    Posted 5 years ago #

    Thanks for your help with this iridiax.

    I'm now stuck at no.9:
    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');

    There is no such line of code in my index.php file? The closest I can find is this: <?php get_header(); ?>

  6. iridiax
    Member
    Posted 5 years ago #

    The index.php they are referring to is the index.php in your wordpress folder, not the one in your theme's folder.

  7. dunners
    Member
    Posted 5 years ago #

    Aha, that makes sense now! Thanks, my only problem now is that it appears to have lost it's links to the theme and the pages are showing pure text pages?

  8. iridiax
    Member
    Posted 5 years ago #

    Try emptying your browser cache and reselecting your theme in the dashboard. If this does not work, then there may be something set wrong or misplaced, so review the checklist again for anything possibly missed.

  9. dunners
    Member
    Posted 5 years ago #

    Uh oh! It won't even let me log on now - it comes up saying that there is a page error.

    Sorry, there has been a page error

    The server could not complete your request.

    * The script or file you are trying to call may be incorrectly written.
    * The host may be having a problem currently.
    * If you typed the page address in the Address bar, make sure that it is spelled correctly.
    * Open the stayuplate.org home page, and then look for links to the information you want.
    * Click Here to try another link.

  10. mhafter
    Member
    Posted 5 years ago #

    Hi - I think I messed up my site, by simply updating the URL by removing the /wordpress within the Admin site. Now I can't get back into the Admin site to fix it.

    Any ideas? - Should have read this thread first! :)

  11. dunners
    Member
    Posted 5 years ago #

    Mmmm, I just restored my database from hosting companies control panel and this appears to have fixed the problem!

    So I don't know how or why - but all is working fine now!

    Thanks for your help iridiax and good luck mhafter!!

  12. iridiax
    Member
    Posted 5 years ago #

    If you ever have errors changing the WordPress or blog url, to fix it see:
    http://codex.wordpress.org/Changing_The_Site_URL

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.