Title: Generating wrong url&#039;s
Last modified: August 30, 2016

---

# Generating wrong url's

 *  [beckast](https://wordpress.org/support/users/beckast/)
 * (@beckast)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/)
 * Hi guys!
 * I migrated my existing WordPress installation to multipress the other day. Now
   all the url’s to pages and posts are wrong. WordPress generates all the url’s
   with an additional ‘w’ in the beginning. It does not matter wether I safe the
   home url with or without the www-prefix.
 * The url that is generated:
    [http://wthefashionnerd.com/inspiration/winter-is-coming-personal-wishlist/](http://wthefashionnerd.com/inspiration/winter-is-coming-personal-wishlist/)
 * How it should be:
    [http://thefashionnerd.com/inspiration/winter-is-coming-personal-wishlist/](http://thefashionnerd.com/inspiration/winter-is-coming-personal-wishlist/)
 * The links in the admin panel are generated correctly.
    Does anyone know the problem
   and has a solution for it? Thank you in advance!

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

 *  [Patrick Johanneson](https://wordpress.org/support/users/pjohanneson/)
 * (@pjohanneson)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/#post-6569137)
 * 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, [http://wpengine.com/support/how-to-change-a-multi-site-primary-domain/](http://wpengine.com/support/how-to-change-a-multi-site-primary-domain/).
 * Also, [https://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite](https://codex.wordpress.org/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](https://wordpress.org/support/users/beckast/)
 * (@beckast)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/#post-6569175)
 * 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 [http://www.thefashionnerd.com](http://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?
 *  [Patrick Johanneson](https://wordpress.org/support/users/pjohanneson/)
 * (@pjohanneson)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/#post-6569180)
 * 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](https://wordpress.org/support/users/beckast/)
 * (@beckast)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/#post-6569205)
 * 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… 🙁
 *  [Patrick Johanneson](https://wordpress.org/support/users/pjohanneson/)
 * (@pjohanneson)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/#post-6569269)
 * 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 `w`s in your URLs? If the latter, try from a
   different computer, or even a different browser.
 *  Thread Starter [beckast](https://wordpress.org/support/users/beckast/)
 * (@beckast)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/#post-6569276)
 * 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.
 *  [Patrick Johanneson](https://wordpress.org/support/users/pjohanneson/)
 * (@pjohanneson)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/#post-6569289)
 * I just noticed that you mentioned **multipress**. Are you referring to WordPress
   Multisite, or to the Multipress theme from ThemeForest?
 *  Thread Starter [beckast](https://wordpress.org/support/users/beckast/)
 * (@beckast)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/#post-6569291)
 * 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.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [multipress](https://wordpress.org/support/topic-tag/multipress/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 8 replies
 * 2 participants
 * Last reply from: [beckast](https://wordpress.org/support/users/beckast/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/generating-wrong-urls/#post-6569291)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
