• Mel

    (@imgritz)


    I am a new WordPress developer. My company wants a complete overhaul of their existing site.

    I am ready to move my test site to production. There is something on the existing site I don’t understand. When I log into the control panel I see the directory as /home/companyname/www/www. I understand one set of www’s (sub-domain) for http://www.companysite.com. What is the last directory level (the second set of www’s).

    Do I clear out the old and move my stuff in the same www directory? Can I make a new directory and repoint the url?

Viewing 2 replies - 1 through 2 (of 2 total)
  • adiant

    (@adiant)

    All of the questions you ask are web host-dependent. And are not WordPress-specific. You really need to be talking to the support folks for your web server.

    The file path, in your case “/home/companyname/www/www” is arbitrary, in the sense that it has nothing to do with the subdomain www. In fact, I’m willing to bet you big money that http to www.domain.ext and domain.ext will take you to the same place. One web host I used recently had /home/companyname/www/www for the root and www. with /home/companyname/www/people for the people. subdomain.

    You cannot change the path without making changes to Apache or whatever web server software is being used. i.e. – not recommended, and likely not something you can do yourself.

    “Do I clear out the old and move my stuff in the same www directory?” Yes, but read this first: https://codex.wordpress.org/Moving_WordPress
    Personally, I prefer to do the move with the Duplicator plugin though it doesn’t work in all situations: https://wordpress.org/plugins/duplicator/

    adiant

    (@adiant)

    After I wrote the last post, I see that we “talked before”.

    Now would be a good time to talk about: https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    The concept is to keep all the WordPress files in a subdirectory off the root, to keep the root directory uncluttered.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘File Directory Path’ is closed to new replies.