• After being hacked and a few of my php scripts being redirected to a site not affiliated with me, I’ve got my site *mostly* working

    I’m running a WordPress site in my subdomain (http://subdomain.example.com) in my public_HTML/gallery folder with the WordPress folder called wp

    As I’m dependant on a plugin to create image thumbnails to permalinked pages, I can’t do anything too radical

    At the moment I’m using .htaccess and index.php to create prettier permalinks, and although the permalinks to the individual pages work, I cannot get a static homepage to be displayed without “Not Found
    It looks like nothing was found at this location. Maybe try a search?” being displayed

    This is the contents of my .htaccess file

    RewriteOptions inherit
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp/index.php [L]
    RewriteCond %{HTTP_HOST} ^(www.)?gallery.hamratimageworx.co.za$
    RewriteRule ^(/)?$ wp [L]
    </IfModule>
    
    # END WordPress

    My index.php file

    <?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( dirname( __FILE__ ) . '/wp/wp-blog-header.php' );

    I’ll admit that I’m not too clued up on this sort of thing, so any help would be appreciated

The topic ‘Subdomain homepage cannot be found’ is closed to new replies.