1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

F'ing WP Blog - My Files are all Screwed Up!

Discussion in 'Blogging' started by ddf1980, Jan 14, 2009.

  1. ddf1980

    ddf1980 Junior Member

    Joined:
    Aug 19, 2008
    Messages:
    110
    Likes Received:
    51
    I'm not sure this is in the right section. Mods feel free to move it if need be.

    Fooling around with Smart Stuffer I f'd up my WP blog.

    When I go to my blog now it shows the index.

    If I put a blank index.php file in my directory it's completely white.

    That's better than showing all my files but not what I want at all.

    I want my gotdamn blog back.

    FYI - I'm hosting it myself, it's not a subdomain.

    Any ideas?
     

    Attached Files:

    • yff.jpg
      yff.jpg
      File size:
      27.7 KB
      Views:
      15
  2. zone69

    zone69 Junior Member

    Joined:
    Nov 24, 2008
    Messages:
    196
    Likes Received:
    1,290
    Trying putting this into the index.php in your web root.

    Code:
    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>
    
    Hope that works for you.
     
    • Thanks Thanks x 1
  3. ddf1980

    ddf1980 Junior Member

    Joined:
    Aug 19, 2008
    Messages:
    110
    Likes Received:
    51
    You are THE SHIT zone! I must have deleted the damn file when I was deleting that damn stuffer.

    Thanks a lot.

    Rep + thanks
     
  4. zone69

    zone69 Junior Member

    Joined:
    Nov 24, 2008
    Messages:
    196
    Likes Received:
    1,290
    I'm glad that worked for you! Word of advice when screwing around adding applications to your domain where you have other things running, create a folder and then unpack the application into that folder rather than into your webroot. Otherwise when you unpack any files, the ones that are named the same will be overwritten......index.php usually being the main one.

    thanks for the rep!