WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


I'm getting some incorrect links generated by my theme.

WordPress Address (URL): http://localhost/newgameplus/wordpress

Site Address (URL): http://localhost/newgameplus

Clicking on something like preview post Generates a URL like this:


The correct URL is: http://localhost/newgameplus/wordpress/?p=34

How can I make it reflect this?

(Also, I cannot change site Address because my site is in a different subdomain)

share|improve this question
up vote 1 down vote accepted

Site Address (URL)
Enter the address you want people to type in their browser to reach your WordPress site. This is the directory where WordPress's main index.php file is installed. The Site address (URL) is identical to the WordPress address (URL) (above) unless you are giving WordPress its own directory. WordPress will trim a slash (/) from the end. If you defined the WP_HOME constant in your wp-config.php file, that value will appear in this field and you will not be able to make changes to it from the WordPress administration screen.

  1. Either change Site Address (URL) to: http://localhost/newgameplus/wordpress
  2. Or copy index.php into localhost/newgameplus and change require('./wp-blog-header.php'); to require('./wordpress/wp-blog-header.php');
share|improve this answer
1. I cannot change the site address, else my cookies get messed up. I encounter an issue where users are not able to log in. (Wordpress is installed in a folder called /wordpress/ under the root directory) 2. Which index.php do I copy? There are lots, and the one for my theme has no require. I'm using toolbox. – Adola Jul 20 '12 at 7:18
@Adola You change the index.php in the root directory. – Brian Fegter Jul 20 '12 at 7:21
Great deal! All works as expected! – Adola Jul 20 '12 at 7:26

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.