Can I run the same domain on WP AND website?

by 14 replies
17
Hi

I have mydomain.com as a Hostgator fantastico WP site, uploaded through FTP FZilla, but can I also run it as a "conventional" website, uploaded through my cPanel (legacy) file manager too? (i.e. by uploading from an index.html page created in my web editor). I'm assuming that possibly not.

What Im looking to do is run sites thus:
mydomain.com/product1, mydomain.com/product2 etc.

thanks
#programming #domain #run #website

  • Hi Ian,


    Are you running WordPress in the main directory or in a subdirectory, e.g. mydomain.com/wordpress?

    You can run WordPress while using conventional HTML pages but I'd do this in a separate directory. WordPress can pretty much serve you as a CMS so you may not even want to publish regular HTML pages, but if for whatever reason you need to, I recommend you set up WordPress in a subdirectory and run your main web site on the home directory.

    Hence your conventional web site might be running under your main domain, www.mydomain.com, but a blog or whatever you use WP for will be running at www.mydomain.com/wordpress.

    Hope this helps.


    JP
    • [ 1 ] Thanks
    • [1] reply
    • i'm using mydomain.com as a WP page, so it's the main directory
  • Banned
    Ian

    If you want to have . .

    mydomain.com/product1
    mydomain.com/product2 etc.

    then simply create the folders /product1, /product2 etc

    and upload (either by ftp or your cpanel file manager) the necessary files to those individual folders.

    When you direct people to mydomain.com/product1, they will be taken straight to the index page of that folder. They will not be aware of your WP site in your root directory (unless, of course, they type in mydomain.com ).

    HTH
    • [ 1 ] Thanks
  • You can add whatever HTML pages to the root eg. public_html directory that you want.

    If you name a file index.html it may display first rather than the WP install.
    It depends how the server is setup.

    If this is not wanted you will have to edit the .htaccess file and add
    DirectoryIndex index.php index.html

    This will tell the server to display index.php first.

    Or use what was mentioned above, making a sub directory.
    eg. your_domain.com/WP Site (What you have now)

    Then your_domain.com/my_new_product/index.html


    Any of these will work.
    • [ 1 ] Thanks
    • [1] reply
    • Ok - I'm beginning to see how it works now - thanks all
      • [1] reply
  • For your second question, put that article on a page of it's own and call it Home. If you want to have a page with all your regular blog posts on, create an empty page called Blog too. Then in your wp-admin under Settings go to Reading and set Front page displays as A Static Page. Then in the drop down menu choose the page you called Home for the front page and the page you called Blog for the Posts page. Hope that makes sense.

    In regards to the tab question, if your theme has a navigation bar that should cover that.

    Leslie
    • [ 1 ] Thanks
  • Banned
    Hi Ian

    Under normal circumstances you wouldn't have both an index.html and an index.php file in your home directory - there will always be a "conflict" - use one or the other, and from what you are saying it sounds as though you need your Wordpress Site to load when visitors click on http: //yoursite.com - so keep the index.php there.

    An index.html file, by default, will load before an index.php one - as you have already discovered - (it can be changed - but I can't see any need for that here?)

    I would recommend moving your .html file(s) into a sub-folder and by keeping your index.html file in there you can simply link to that page by using the link http: //yoursite.com/foldername.

    Hope that makes sense!
    • [ 1 ] Thanks
    • [1] reply
    • Hi Leslie, yup, goddit Not sure whether or not it'll morph in to a blog yet, but I'll see; of course, I may be leaving money on the table if i don't...

      Thanks pj, yes I see what you're saying, and I may even change the name of the existing index.html into somethingelse.html that will better suit what is essentially a sales page I'll be linking to that needs a few mods.

      I'd run it all on web editor and html etc. but WP does give a better presentation and options, for (arguably) less effort.
      • [1] reply

Next Topics on Trending Feed

  • 17

    Hi I have mydomain.com as a Hostgator fantastico WP site, uploaded through FTP FZilla, but can I also run it as a "conventional" website, uploaded through my cPanel (legacy) file manager too? (i.e. by uploading from an index.html page created in my web editor). I'm assuming that possibly not.