Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am trying to install WordPress in a subdirectory. This is a new fresh install. Here is what I did:

Assuming my site is, and I wanted to install wordpress in

A) I created a database on the server

B) I copied all wordpress directories to

C) I moved index.php from to

D) I modified the last line of index.php from:

require( dirname( __FILE__ ) . '/wp-blog-header.php' );

and it got modified into:

require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );

E) I modified wp-config.php and updated it in accordance with the required DB name, user name, password, and server name

Now, when I test hat locally, and when I go to, I get redirected to the WordPress installation setup page. However, on the live server, I am redirected to (notice the missing wordpress folder, the redirect should be to

I have done this before, but not sure what is causing the problem. Can you please help? I really ran out of ideas. I tested everything I can think off (including typos), but to no avail. Please help.


share|improve this question

1 Answer 1

Make sure you followed all these steps. It sounds like the .htaccess file was not updated correctly.

share|improve this answer
Thanks. I did that already. Also, there isn't .htaccess file yet, this is a fresh install and .htaccess gets created after using wordpress. I doubt this is the problem. – Greeso Jan 1 '14 at 19:16
So is showing up as a 404 page since install.php is a subdirectory? – hornj Jan 1 '14 at 19:18
Yes, I get a file not found error. Becuse install.php is really located in – Greeso Jan 1 '14 at 19:22
I think talking to you helped me solve the problem. I got it to work. All I did is type the URL for installation. So, I typed and it worked. Thanks. :) – Greeso Jan 1 '14 at 19:26
Thanks, glad that helped. – hornj Jan 7 '14 at 22:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.