Basic WP installation question

by ronr
12 replies
  • WEB DESIGN
  • |
When creating a new WP site on a domain that already has a non wp site how would you do it when you want to keep the current website up if possible?

If WP is installed in the root where it normally would go wouldn't that override the current site? Or would the index.htm file still show when someone goes to the domain and the old site would funtion until the index.htm is deleted when the wp site is finished.

Thanks, Ron
#basic #installation #question
  • Profile picture of the author David V
    If you are going to keep the current site in the root, you need to install WordPress into a subfolder/directory such as /blog or /wordpress, whatever you want to name it.
    Your WordPress url would then become h##p://mysite.com/blog (or whatever your directory name is).

    If you later decide to make it show as the main site, it can easily be done with the blog address in admin, then copying the .htaccess and index to the root, then making a minor edit to the index.
    {{ DiscussionBoard.errors[8170722].message }}
  • Profile picture of the author DPad
    Most web server will look for index.html first so it's fine to install your WP on the same folder.
    {{ DiscussionBoard.errors[8172906].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by DPad View Post

      Most web server will look for index.html first so it's fine to install your WP on the same folder.
      No, that's a dumb advice. Don't do it!
      Signature

      {{ DiscussionBoard.errors[8172939].message }}
    • Profile picture of the author ronr
      I was going to to do that but when you test the wp site it causes problems. I might not leave the current site up just use an under construction plugin instead

      Originally Posted by DPad View Post

      Most web server will look for index.html first so it's fine to install your WP on the same folder.
      {{ DiscussionBoard.errors[8172953].message }}
  • Profile picture of the author David V
    If your looking to build your WP site in the subdirectory and have the current html site stay as is, you can certainly do that.
    When your finished with the WP site, you just to make a few changes and your WP site will appear to be in the root even though the files may reside in a directory.
    In the WordPress codex you'll find "Giving WordPress it's own Directory", which is what your doing.

    This trips a lot of people up and they end up with 404's.

    It's fairly simple, but must be done in the correct order....

    Finish your site.

    Login to WP admin and go to "Settings" --> General.

    Meanwhile.... be logged into your server with FTP so you can shift around some files.

    Back to WP Admin "Settings" --> General.
    In "WordPress Address", enter the location of WordPress (http://mysite.com/blog)
    In the "Site Address" enter the desired location (http://mysite.com)

    Save

    Back to FTP.....
    Go into the /blog directory (or your WP location) and download the index.php and .htaccess to your computer.
    Open the index.php you downloaded and change the url in the bottom to reflect the correct directory/url.
    Code:
    require('./blog/wp-blog-header.php');
    (use plain text editor only, never WORD, ever...ever)

    Save, close.

    Back to FTP....
    Upload the index.php and .htacess to the root.
    Rename your current index.html to "index.html.old" for now. (don't delete yet).

    Test your site and admin.... it should work fine.
    Now you can delete the old files.
    {{ DiscussionBoard.errors[8173026].message }}
  • Profile picture of the author farazqadri
    I think David has given the best answer.. thats how we also install wordpress websites.
    {{ DiscussionBoard.errors[8173465].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by GFox View Post

      Like David said, your best bet is to install it in a subfolder. You won't have any problems with that setup.
      Originally Posted by farazqadri View Post

      I think David has given the best answer.. thats how we also install wordpress websites.
      Yes, David always gives good advice - and I am the one who will delete replies like yours, which don't add anything valuable to the thread!
      (just a warning for the future...)
      Signature

      {{ DiscussionBoard.errors[8173865].message }}
  • Profile picture of the author jay walters
    create a subdirectory into your domain and install there the wp so that it would not affect your present site.
    Coz you can actually have many subdirectory with wp in your site if you want to and not affect your main site.

    I hope this helps.
    {{ DiscussionBoard.errors[8176122].message }}
    • Profile picture of the author markjdudek
      Some very competent advice here. When I had this problem all I did was create a new folder in my website space (usually htdocs or public_html). Install your new website into that new folder, then go to your website control panel and point your domain name to that folder (assuming your domain name is with the same web host).

      I hope this helps!
      Mark.
      {{ DiscussionBoard.errors[8176383].message }}
  • Profile picture of the author Gavan
    Originally Posted by ronr View Post

    When creating a new WP site on a domain that already has a non wp site how would you do it when you want to keep the current website up if possible?

    If WP is installed in the root where it normally would go wouldn't that override the current site? Or would the index.htm file still show when someone goes to the domain and the old site would funtion until the index.htm is deleted when the wp site is finished.

    Thanks, Ron
    If you install Wordpress in the root folder it will overwrite your old site. If you want to keep your old site you should install Wordpress in a seperate sub-folder.
    {{ DiscussionBoard.errors[8176515].message }}
    • Profile picture of the author Istvan Horvath
      I suggest you guys read the whole thread before replying...

      Originally Posted by jay walters View Post

      create a subdirectory into your domain and install there the wp so that it would not affect your present site.
      Coz you can actually have many subdirectory with wp in your site if you want to and not affect your main site.

      I hope this helps.
      Originally Posted by markjdudek View Post

      Some very competent advice here. When I had this problem all I did was create a new folder in my website space (usually htdocs or public_html). Install your new website into that new folder, then go to your website control panel and point your domain name to that folder (assuming your domain name is with the same web host).

      I hope this helps!
      Mark.
      Originally Posted by Gavan View Post

      If you install Wordpress in the root folder it will overwrite your old site. If you want to keep your old site you should install Wordpress in a seperate sub-folder.
      Signature

      {{ DiscussionBoard.errors[8176791].message }}

Trending Topics