Forum Replies Created
-
AuthorPosts
-
December 22, 2014 at 10:34 pm in reply to: Biz layout not showing when WP is installed on its own directory (not root dir) #19656almatainaParticipant
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
December 22, 2014 at 9:39 pm in reply to: Biz layout not showing when WP is installed on its own directory (not root dir) #19655almatainaParticipantTo 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
-
AuthorPosts