Can I put my WordPress theme files in another folder?

The answer is yes. Like @Kvvaradha mentioned in his comments. If you put header.php footer.php index.php functions.php style.css must be in /wp-content/themes/your-theme-folder. And other your library, components and includes could be put anywhere that you prefer. But, make sure files and folders structure are flexible. Good luck in your codes 🙂

Unwanted redirect in admin area

I solved it with the help of a colleagues of mine by adding the following lines into wp-config.php: $_SERVER[‘HTTP_HOST’] = $_SERVER[‘HTTP_X_FORWARDED_HOST’]; $_SERVER[‘REQUEST_URI’] = ‘/stuff/wordpress’ . $_SERVER[‘REQUEST_URI’]; $_SERVER[‘SCRIPT_NAME’] = ‘/stuff/wordpress’ . $_SERVER[‘SCRIPT_NAME’]; $_SERVER[‘PHP_SELF’] = ‘/stuff/wordpress’ . $_SERVER[‘PHP_SELF’]; $_SERVER[‘REMOTE_ADDR’] = $_SERVER[‘HTTP_X_FORWARDED_FOR’];

Custom Post Type Archive in Sub Folder

Unlike page templates, WordPress doesn’t look in subdirectories for post template pages. The base function used for locating such templates is locate_template() (see source), which looks in the root directory of your theme (and parent theme). (On the other hand get_page_templates() searches sub-directory). You can use template_include filter (which filters the absolute path to your … Read more

WordPress in sub directory wp-admin problem

I think you are missing some rules in your WP .htaccess file. I show mine below. Notice the rules for wp-admin, add them to your file: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /subcataloged/cliens-wp/ 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 … Read more

Changing directory and/or URL structure

@kureikain’s answer looks great, and it probably works really well in a wide variety of circumstances. But for author URLs specifically, there’s a simpler way. Change the author_base, like so: global $wp_rewrite; $wp_rewrite->author_base = “people”; $wp_rewrite->flush_rules(); You should only need to run this once, perhaps on a plugin activation. Updating WordPress should not affect this … Read more