Viewing 8 replies - 1 through 8 (of 8 total)
  • Check your wp-config.php file for a typo. There should be a line that reads:

    define('DOMAIN_CURRENT_SITE', '[your site's URL]' );

    Make sure that [your site's URL] is correctly defined. In your case it should be thefashionnerd.com.

    You’ll probably need to double-check your database tables, too. Unfortunately, updating the domain in Multisite is a bit of a pain. Fortunately, there are some good resources out there.

    See, for example, https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/ .

    Also, https://codex.www.ads-software.com/Moving_WordPress#Moving_WordPress_Multisite has some direction, though it sort of assumes you’re well-versed in manually editing your MySQL database.

    Thread Starter beckast

    (@beckast)

    Thank you Patrick, for your fast answer.

    I checked all the url’s several times in the config and the database, but they are all correct. Probably it must be something different, because when I’m changing the url to https://www.thefashionnerd.com it also adds an w and end up to be wwww.thefashionnerd.com

    I thought it might be something with the .htaccess file but I couldn’t find out what might be wrong and I actually just copied this part from the network page…

    Here is the content of my .htaccess file:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    Do you have any idea?

    Your .htaccess file looks like the stock WP Multisite one. Have you tried disabling all your plugins and switching to a default WP theme (eg, Twenty Fifteen) to see if the issue persists?

    Also: I tried going to www.thefashionnerd.com and thefashionnerd.com, and both times your site loaded correctly (no extra w prepended to the URL). Could it be a problem with your computer?

    Thread Starter beckast

    (@beckast)

    I haven’t activated a plugin since the migration… But I already tried activating and deactivating one, did not help.

    I just tried out wether the links are correctly with the Twenty Fifteen theme but the url’s were still wrong.

    Yes, it is no problem to go to www.thefashionnerd.com and thefashionnerd.com but when you click a post-link, the url is generated wrongly.

    I have really no idea what else I could try… ??

    Surfing through your site, clicking various links, everything seems to be getting proper URLs (images, links to blog posts, etc). Did you get your problem solved, or are you still seeing spurious ws in your URLs? If the latter, try from a different computer, or even a different browser.

    Thread Starter beckast

    (@beckast)

    Yes, the links are alright again though not because I’ve solved the problem but because I restored everything yesterday.

    I first restored everything and started again with the multipress from the beginning. But it did not change anything and the post url’s still had the unnecessary w, so I decided to restore everything because I need the site to be correctly running.

    In fact, I still have no idea what to do to make it running properly. If I won’t find another solution I am going to install the entire WordPress new, using multipress from the beginning and import all my existing data.

    I just noticed that you mentioned multipress. Are you referring to WordPress Multisite, or to the Multipress theme from ThemeForest?

    Thread Starter beckast

    (@beckast)

    I am talking about the WordPress Multisite ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Generating wrong url's’ is closed to new replies.