Skip to content

Instantly share code, notes, and snippets.

@richellyitalo
Last active August 17, 2017 13:02
Show Gist options
  • Save richellyitalo/6c1cc6b4258fad3c007e455b3534934c to your computer and use it in GitHub Desktop.
Save richellyitalo/6c1cc6b4258fad3c007e455b3534934c to your computer and use it in GitHub Desktop.
Subfolder para wordpress
######index.php######
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/{MAIN_FOLDER}/wp-blog-header.php' );
######.htaccess######
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /{FOLDER}/{FOLDER_PROJECT}/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /{FOLDER}/{FOLDER_PROJECT}/index.php [L]
</IfModule>
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment