Created
November 6, 2013 12:26
-
-
Save techjewel/7335269 to your computer and use it in GitHub Desktop.
make domain.com/wordpress/ to domain.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#paste this into domain.com/wordpress installation .htaccess | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /wordpress/ | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /wordpress/index.php [L] | |
</IfModule> | |
# END WordPress | |
# in domain.com -> index.php file paste this | |
<?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('./wordpress/wp-blog-header.php'); | |
# I did not tested yet but hope it will work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment