badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Biz layout not showing when WP is installed on its own directory (not root dir)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18725
    almataina
    Participant

    thanks for a great theme!

    I have used the business layout in two sites, one in which WP resided in the root directory and one where WP was not installed in the root directory. I had no problems setting up the biz layout on the site whose WP install resides on the root folder. Unfortunately, the biz layout is not working on the site whose WP install doesn’t reside on the root directory. in this last one all the menus and pages work with the exception of the biz layout. I get the following error in the body of the homepage:

    Error 404-Page NOT Found
    It seems we can’t find what you’re looking for.

    This might be because:
    You have typed the web address incorrectly, or the page you were looking for may have been moved, updated or deleted.

    Please try the following instead:
    Check for a mis-typed URL error, then press the refresh button on your browser.

    any recommendations?

    #18746

    hi almataina,
    I think your wordpress is not installed properly and also did you check the .htaccess file. This is not related to the theme issue and we support only the theme relating issues. Could you once send your site url too. If we find any solution then we will let you know. And at last Please make a bit more clear , its a bit more confusing.

    Thank you!

    #19655
    almataina
    Participant

    To clarify: the site http://www.almataina.com was setup with a WP installed using CPanel in a subdirectory called main. The .htaccess file on the root dir (/public_html) has the following code to point to the main subdirectory:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www.)?almataina.com$
    RewriteRule ^(/)?$ main [L]
    </IfModule>

    The index.php file on the root dir also points to the main subdirectory:
    define(‘WP_USE_THEMES’, true);

    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . ‘/main/wp-blog-header.php’ );

    Inside the main subdirectory there is no .htaccess but there is an index.php that reads:
    define(‘WP_USE_THEMES’, true);

    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

    When accessing the site http://www.almataina.com. The site redirects to http://www.almataina.com/main and loads all of the items and pages properly with the exception of the home page, which should load the business template. The Biz template has been configured within the wp-admin. The homepage is the only page that is not loading properly. Instead it shows the Error 404-Page NOT Found. If you attempt to access any of the menu item pages all of them work.

    Thanks for your assistance

    #19656
    almataina
    Participant

    Correction, the .htaccess file contents on the root (www.almataina.com) dir contains the following:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    #19666

    Hi almataina,
    Just replace your code with this code. Hope this may help you

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /main/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /main/index.php [L]
    </IfModule>
    
    # END WordPress

    and i think you also have not changed all the database path too where for about page there must be http://almataina.com/main/about instead of http://almataina.com/about/

    First of all check using the above .htaccess file.
    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.