verunar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how to setup config file when moving wordpress core to subfolderI was missing a slash at ./core
Here are the paths if anyone would ever want to set up the config file “tim nash” waydefine(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/public’);
define(‘WP_CONTENT_DIR’, realpath(ABSPATH . ‘/custom’));
define( ‘WP_CONTENT_URL’, WP_HOME . ‘/custom’ );
define(‘WP_SITEURL’, WP_HOME . ‘/core’ );
define(‘UPLOADS’, ‘../uploads’);
this is for folder struction:
|->.htaccess
|->index.php
|->wp-config.php
|-> core
|->custom
|–>plugins
|–>themesForum: Fixing WordPress
In reply to: how to setup config file when moving wordpress core to subfolderThis is an excerpt from his tutorial:
The problem with the current setup is that your wp-config.php file is still under the document root, and
you may want for extra protection to move it one level down. Create a config folder ( cd config) and move
the config file in it ( mv public/wp-config.php config/wordpress.php). Now create a new file wpconfig.phpin
public and add the following PHP code in it to include the actual config file:<?php
require dirname(__DIR__) . ‘/config/wordpress.php’;In tutorial he mentions http://ajk.fi/2013/wordpress-as-a-submodule/ and https://timnash.co.uk/wordpress-version-control-tips/
Do you think I should argue with the teacher that he should follow wordpress codex instead? Because I think it might be too late for it now, my project is due soon.Forum: Fixing WordPress
In reply to: how to setup config file when moving wordpress core to subfolderYes he was the one setting this up for me but it was on the local host. I’m now trying to do the same but on hosting website.
Forum: Fixing WordPress
In reply to: how to setup config file when moving wordpress core to subfolderHi
Thank you for your answer but this is required from me for my uni course