Skip to content

Instantly share code, notes, and snippets.

@techjewel
Created November 6, 2013 12:26
Show Gist options
  • Save techjewel/7335269 to your computer and use it in GitHub Desktop.
Save techjewel/7335269 to your computer and use it in GitHub Desktop.
make domain.com/wordpress/ to domain.com
#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