WordPress by default will uncompress to /wordpress/
from the downloadable archive, this is because the compressed file contains the parent directory labelled wordpress
. If you then run the installer from this folder it will automatically set the path to this location within the SQL.
Unless your using a SEO plugin that controls the SEF URLS then there is only several ways that WordPress will redirect, these are: SQL
, .HTACCESS
and WP-CONFIG.PHP
WP-CONFIG
Unlike older versions of Joomla and other other content management systems by default WordPress does not set the URL path, unless you edit this file and change the defined path. The define untouched looks like:
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
HTACCESS
WordPress by default does not control the install path using the htaccess file, a default htaccess should look exactly like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
SQL
WordPress by default on install will add two entries into your SQL database:
- wp-options
- option_name:
siteurl
option_value: http://www.example.com
- option_name:
home
option_value: http://www.example.com
You shouldn't need to edit the database directly, as WordPress allows you to change the siteurl, and home path directly in your WordPress.
- Navigate to
http://www.example.com/wordpress/wp-login.php
- Login to the administration dashboard
- Click Settings
- Click General
- Change WordPress Address (URL)
- Change Site Address (URL)
- Click Save
Your settings should look something like this:
If for whatever reason you can't login then use phpMyAdmin to change the values outside of the WordPress environment.