I have a non-wordpress site where i installed wordpress in a subdirectory
www.example.com/wordpress/
I have created an htaccess file in the wordpress folder (whre i have all its content)
# 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
And made this change in the index.php (inside wordpress folder)
<?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__ ) . './wordpress/wp-blog-header.php' );
The admin works ok but when try to visit the site it gives me an error 500. what am i missing?
Aclaration: I want to use wordpress in this url www.example.com/wordpress/ since i have other content in the root.