Need to change url from www.example.com/wordrpess to www.example.com (11 posts)

  1. junkhed1
    Posted 6 years ago #

    Hello all still looking for some assistance on this and wondering if I'm on the right track. So after reading several things I find that I am still confused. I want to change my url address which currently shows me my site (www.randyniles.com/wordpress) to just http://www.randyniles.com. I'm just trying to find the most efficient way to do this. Since I'm new to all this I really concerned about screwing things up with the database/etc I'm just trying to make sure I'm taking the proper steps. I've read several things and it looks like the possible solution is 1. changing the Blog URL from http://www.randyniles.com/wordpress to just http://www.randyniles.com is my first move.... then moving the index.php file to my root would be the next step... and then from what I'm reading I need a .htaccess file as well which I currently don't have in my folder so I've been reading where I would need to create one... My first ? is - is this the way to go out doing what I like done? and if so how do I create the .htaccess file (creating a txt file and saving it as .htaccess?)
    Sorry for sounding so clueless but I truly am at this point..lol
    I really appreciate all the assistance you all have been providing and can provide... Thanks.

  2. Rev. Voodoo
    Posted 6 years ago #


    have you read this?

    after moving index.php you need to edit it as well

    as far as .htaccess, if you didn't have one, you may not need one. WP automatically generates it when you set up pretty permalinks. If you didn't do that, no worries

  3. junkhed1
    Posted 6 years ago #

    Hi RVoodoo thank you for the response... I had checked this out before just been confused on the steps I would have to do or not have to do.

    when you say edit the index.php files do you mean this below: The only thing is in my index file I don't have this line of code in it so should I place it manually in there? and if so where would I place it currently my index.php file looks something like this

    <?php get_header(); ?>
    followed by my content and some tags. should I manually place
    require('./wordpress/wp-blog-header.php'); after the get header script.

    # Open your root directory's index.php file in a text editor
    # Change the following and save the file. Change the line that says:
    to the following, using your directory name for the WordPress core files: require('./wordpress/wp-blog-header.php');
    # Login to the new location.
    It might now be http://example.com/wordpress/wp-admin/

    Thanks again for the assistance.

  4. Rev. Voodoo
    Posted 6 years ago #

    what index.php is that? that is one from your theme, that's not the correct index.php

    when you installed wordpress, in the folder you installed it into you should have a bunch of files like wp-config.php, wp-cron.php, wp-blog-header.php and in that folder you should have an index.php that includes this

    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    * @package WordPress

    * Tells WordPress to load the WordPress theme and output it.
    * @var bool
    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */

    it seems you've gotten confused and are using the wrong index.php file

  5. junkhed1
    Posted 6 years ago #


    When I downloaded wordpress to my host server and all the files were placed I began following some tuts from Nettus to create WordPress Design from scratch... I created a new folder in my theme folder and placed or created new files in there which hold all my info for the pages. I started in HTML first and then broke everything up to their respective php files such as an index, header( which has a lot of the main info. here is what it looks like

    the index.php file

    [Moderated: Too much code. Please consider placing the code in a text file on your site with a link here -or- use a pastebin service such as http://wordpress.pastebin.com. Thanks!
    (not germane to the discussion either)]

    I did find the index.php file you mentioned when I open the worpress folder.. the one that I thought they were talking about is the one referenced above which is located in my /themes/newtheme folder.
    So that should be the index file that should be edited?

  6. Rev. Voodoo
    Posted 6 years ago #

    the one you listed above was in the right place, when it was in a theme folder.

    You don't do anything with it to move wordpress

    The one I showed you above is the one you place in your root directory and edit

  7. Shane G.
    Posted 6 years ago #

  8. junkhed1
    Posted 6 years ago #

    Hey RVoodoo everything worked well thanks for the assistance, I really appreciate it. If its not too much trouble I wanted to find out: would you know how to change the link paths which display in the url when you click on certain tabs/links on the site? For instance when I click on say the personal link it will take me to the page with the url listed - randyniles.com/wordpress/?page_id=36

    how could I change this to reflect say just the name of the pages rather than the id's and cat#'s... Can this be done with cat as well?

    Thank you again.

  9. Rev. Voodoo
    Posted 6 years ago #

    thats done in your admin area


    when you set that up, that is when the .htaccess file we were discussing earlier will automatically be generated

    I'm honestly not sure what all variables you can set up with the permalinks. You may have to play around or do a bit more research....I've never really gone too in depth with permalinks

  10. junkhed1
    Posted 6 years ago #

    Thanks RVoodoo I appreciate it I'll do some research on it.
    Be well.

  11. ploochan
    Posted 6 years ago #

    I followed these instructions and its not working for me. Is there any instructions under windows?
    I changed WordPress address (URL), to just example.com, and moved the index.php into C:\Inetpub\wwwroot
    but still when I go to my browser, and I just type example.com still doesnt work (page under construction)
    any ideas? what am I doing wrong?

Topic Closed

This topic has been closed to new replies.

About this Topic