• I’m having a strange issue. I just made a brand new WordPress install, but my WordPress URL was instantly grayed out. I wanted to remove the “www” for both wordpress and site URL, so I started Googling my way out of this.

    I added the define lines to my wp-config:

    define('WP_HOME','http://website.com');
    define('WP_SITEURL','http://website.com');

    (And yes, the URL has the actual site URL)

    When I went to the site, my wp-admin was still being redirected to www. When I logged in, the WordPress URL was still the www version.

    I decided the most immediate option was to edit it in database, but when I got to the wp_options table, I saw that the URL looked as it should (no www).

    I’m sure I’m missing something here. Any ideas?

Viewing 12 replies - 1 through 12 (of 12 total)
  • There are 2 instances in the wp_options table, are both of them changed?

    Thread Starter CosmicRaptor

    (@cosmicraptor)

    Thanks for the quick response!

    Do you mean both option_name Siteurl and home? Both of them are non-www. I don’t see any other related URLs in this table. Is there another I should be looking at?

    They are the 2 I was talking about.

    I am, not really sure apart from that, have you checked your .htaccess file to see if something in there is changing it?

    @cosmicraptor, Are you running any caching / redirection plugin? Do you mind posting the content of your .htaccess file?

    Thread Starter CosmicRaptor

    (@cosmicraptor)

    @innuvo: I’ll take a look into that.

    @dipak: I’ve disabled all plugins and reverted to a standard theme. I did not have a caching plugin. I also removed the lines I added to wp-config defining site and home urls. All to no avail!

    @cosmicraptor, Post the content of your .htaccess file.

    Thread Starter CosmicRaptor

    (@cosmicraptor)

    Sorry, I’m battling a stomach flu (that might actually be dengue fever) right now. Haven’t gotten the chance to do much other than stare at email and distract myself from the pain.

    Thread Starter CosmicRaptor

    (@cosmicraptor)

    I’m back, after being hopped up on anti-diarrhea meds (TMI, yeah yeah).

    I checked for an htaccess file on this site. There is none. Other sites on the server space do have one, and all options are checked to reveal hidden files.

    If you don’t have .htaccess file in root of your WordPress directory, then create a new one.

    Have a look to this WordPress Codex.

    @dipak: keep support on this site; your off-site links are frowned upon and will be edited.

    @cosmicraptor: maybe take some time away from this issue and get well? BTW, who is the webhost? Was this an automated WordPress install?

    Thread Starter CosmicRaptor

    (@cosmicraptor)

    @dipak – Is there an advantage to created an .htaccess file that will allow me to change my wordpress URL?

    @mark Ratledge – All better now that I’m back in the US. To answer your questions:

    Webhost: Bluehost shared server space. My other sites running off this space don’t have the issue, strangely.

    Yes, this was an automated WordPress Install from Bluehost’s cpanel through MOJO

    The .htaccess file and wp-config.php work in entirely different ways. .htaccess files use the server’s apache mod_rewrite to redirect URLs, not configure URLs. The wp-config.php file configures URLs for WordPress in conjunction with the database. You can’t use .htaccess in the same way as wp-config.php. Setting rewrites in .htaccess will not disable the URL settings in the admin area in WordPress.

    If that install was done by Mojo marketplace, you need to ask Bluehost for help. Somehow the site URLs are hardcoded somewhere, either in wp-config.php or another file used by Mojo. If you can’t find it, best thing might be to delete the install and start over without the www, either with Mojo or a manual install.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘WordPress URL not changing, even after value changes in database’ is closed to new replies.