Tag Info

New answers tagged

1

The procedure is thorooughly documented in Codex under Moving a Root install to its own directory. You misunderstand the point about changing URLs in it, and yes terminology sucks. They only URLs that will change are those that are based of "WP address". That would be WordPress core, essentially admin part. All content URLs are based of "Site address", ...


0

Okay, here is how it is done: Move wp-*, index.php, .htaccess to your new wordpress folder Edit wordpress/.htaccess: Find this line: RewriteRule . /index.php [L] Make it: RewriteRule . /wordpress/index.php [L] Create a new file in /path/to/www called .htaccess then add this: RewriteEngine on RewriteRule ^$ https://www.example.com/ [L] <IfModule ...


0

After some more investigation I found that the issue might be on my Timber theme. The variable that retrieves the theme path on Timber side is not correctly set. There is already an existing bug in Timber about this: https://github.com/jarednova/timber/issues/619#issuecomment-136096298


0

You can move the installation and also plugin and content folder. The follow source demonstrate this. //* // Custom content directory define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/wp-content' ); define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content' ); // Custom plugin directory define( 'WP_PLUGIN_DIR', dirname( __FILE__ ) . ...


0

I solved my problem by trying this (and it works!): function get_some_url() { $full_url = add_query_arg( 'action', 'action-name', admin_url( 'users.php' ) ); //$relative_url = str_replace( get_site_url(), '', $full_url ); //return $relative_url; return $full_url; } This was tested in a localhost/subdirectory install and in a live install ...


0

Applying the htaccess for version 3.5+ seems to have worked RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ...


2

When you look at the source code, the tag template is loaded as follow in template hierarchy elseif ( is_tag() && $template = get_tag_template() ) : in wp-includes/template-loader.php get_tag_template() uses get_query_template() which uses locate_template() which loads the tag template according to hierarchy from the theme root folder So, moving ...



Top 50 recent answers are included