Deleted files off home server – now wordpress works but original page "forbidden".

Discussion in 'Web Design and Development' started by MOFS, Jul 17, 2009.

  1. MOFS macrumors 65816

    MOFS

    Joined:
    Feb 27, 2003
    Location:
    Durham, UK
    #1
    Apologies if this has been answered before. It's kinda a follow through from my previous thread, after which I decided to follow advice and go to an exclusively Wordpress website (see here). Unfortunately, in implementing this new system, I deleted all the files apart from the "Media folder" (holds my photos) and "wordpress folder" (holds my Wordpress blog). While www.michaelsen.org.uk/wordpress works ok, anyone directed to http://www.michaelsen.org.uk currently gets a forbidden error. I think I did a booboo.:eek:

    Is it cause I deleted the index file? Is there anyway I can make it so if someone goes to michaelsen.org.uk they get redirected to michaelsen.org.uk/wordpress? Much help would be appreciated, as my knowledge of html/css is slim to nil.:eek:

    mofs
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Yes, it's because the index page is gone. Most web servers are setup to look for the file index.html or index.php, etc.

    There's a couple options.
    1.) Create a index.html page that looks like,
    HTML:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html><head>
    <meta http-equiv="refresh" content="0;url=http://www.michaelsen.org.uk/wordpress/">
    </head>
    <body>Redirecting to blog</body></html>
    2.) Do a redirect from a .htaccess file (if the server uses Apache).
    Code:
    Redirect 301 / http://www.michaelsen.org.uk/wordpress/
    3.) Move the contents of WordPress up a folder level. This will make WordPress the home page. Unfortunately this may mess with some of WordPress' settings. WordPress offers instructions for doing this so be sure to check them out if you go this route.
     
  3. MOFS thread starter macrumors 65816

    MOFS

    Joined:
    Feb 27, 2003
    Location:
    Durham, UK
    #3
    Thanks very much! Did option (1) and looks very nice! I may look into moving the contents of wordpress up a level [option (3)] but that will be something for the future!

    mofs
     

Share This Page