WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My website takes me to WAMP homepage (8 posts)

  1. minstu
    Member
    Posted 2 years ago #

    Hi, anyone know why http://www.mysite.com constantly takes me to the WAMP page? From there I can click on the folder (in Your Projects) and it then takes me to the wordpress folder which I click on and then I get to my website. But why is it not just taking me to my site?

    My structure looks like this (I have two sites and BOTH go to the WAMP home page):

    C:\wamp\www\site1\wordpress
    C:\wamp\www\site2\wordpress

    WP is installed in these subfolders.

    The only way I can see my sites is if I type the URL like this: http://www.site1.co.uk/site1/wordpress/

    Can someone help?

  2. daryl09
    Member
    Posted 2 years ago #

    I'm having the same problem. I think it has something to do with the index.php file. It needs to be replaced with the correct wordpress index file I just don't know which one that is.

  3. daryl09
    Member
    Posted 2 years ago #

    The index.php file in the root www. folder takes you to the WAMP homepage.

  4. ClaytonJames
    Member
    Posted 2 years ago #

  5. minstu
    Member
    Posted 2 years ago #

    I followed that tutorial and exactly the same thing happens. Both sites just take me to the WAMP page.

    I do have that Index.php file in my www folder, so what exactly should you do with it? I tried deleting it and that just makes everything point to same place but it's displayed as an index of folders rather than the WAMP page.

    This is so frustrating.

  6. minstu
    Member
    Posted 2 years ago #

    Should I amend my WordPress address (URL) and Site address (URL) within wordpress admin? So far they are:

    WordPress address: http://localhost/site1/wordpress
    Site address: http://www.site1.com

    and same for site 2. Is that right?

  7. and same for site 2. Is that right?

    If the site really is localhost, yes. But if the site is on the Internet then they should both be http://www.site1.com.

    And just in case it gets messed up (easy to do) here's the link to reset it if you get locked out of the WordPress dashboard. ;)

    http://codex.wordpress.org/Changing_The_Site_URL

  8. minstu
    Member
    Posted 2 years ago #

    Ok I figured out what I was doing wrong in the tutorial for the virtual hosting, in the hostfile I hadn't typed .co.uk on the end of my additional lines (so just http://www.site1 etc). Corrected that.

    So now it works, BUT - only one of them works! (UGH). It's really strange I just copy/pasted the bits of code needed for each site's virtual host and change the bits where needed (site1 for site2). Now when I browse to each site on the Internet, site2 works fine but site1 gives an error 404 not found.

    How can that be? I have gone back over the code a hundred times to check for errors, it's all identical to site2's code. It must be something else.

    I've even changed the order in which I added the lines to host file but makes no difference...

Topic Closed

This topic has been closed to new replies.

About this Topic