Extra Text in URL

The extra “nathantornquist” in the URL happens when you don’t have the trailing slash on http://www.nathantornquist.com/wordpress. What are the contents of your .htaccess file?

Accidentally messed up URLs

Codex has an article on Changing The Site URL, you can edit values in database or override them in config. To have your site work from root you can either relocate WP there altogether or configure it to support root of the site, while still residing in subdirectory. See Giving WordPress Its Own Directory on … Read more

Form action unfamiliar

Generally, they will return the same URL, as bloginfo( ‘url’ ) will call home_url internally with any arguments, and the default first argument ($path) of home_url is the empty string. However, bloginfo( ‘url’ ) will apply an additional filter to it, namely the home_url filter. Common pratice is to use home_url, indeed with esc_url (even … Read more

hijacking home_url for root relative paths

You need to set the WP_HOME and WP_SITEURL in wp-config.php in a smarter way. Like this: <?php define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); // add the next line if you have a subdirectory install define(‘WP_SITEURL’, WP_HOME . ‘/path/to/wordpress’); This will solve your your issues with site URLs as they will be set dynamically on based on whatever … Read more

Unable to load WordPress local site after changing WordPress Address (URL) and Site Address (URL)

I was able to add WordPress Address (URL) and Site Address (URL) manually and access the local site again. What I did was add following code segments to following files. wp-config.php define(‘WP_HOME’,’http://www.local.abc.com’); define(‘WP_SITEURL’,’http://www.local.abc.com’); Functions.php I have added following code just after opening of update_option(‘siteurl’, ‘http://www.local.abc.com’ ); update_option(‘home’, ‘http://www.local.abc.com’ ); After that I have refresh site … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)