WordPress url duplicates domain name

2.8k views Asked by At

I built a site in WordPress, all works fine, but after uploading, all my links are reading wrongly.

My site name is nativemedialimited.com and thats what its supposed to read on the url, but when i click on any link in the menu, example, I get http://nativemedialimited.com/nativemedialimited.com/clip when i click on 'clip' hence this gives me 404 error.

I have eddited the options parameter in the database for site url and home. I have done all that I would do normally as this is not my first WordPress upload.

Thanks ahead

2

There are 2 answers

0
zac1987 On

All links in database must include http://

All links in wp_option.php file must NOT include http://

Open phpMyAdmin check 4 tables :
a) wp_blogs :
domain : www.funbeli.com
path : /

domain : http://www.2aek.com/funbuy (if wp files are in sub folder)
path : /funbuy/

b) wp_options :
siteurl : http://www.funbeli.com
home : http://www.funbeli.com

siteurl : http://www.2aek.com/funbuy (if wp files are in sub folder)
home : http://www.2aek.com/funbuy

click page 2 Then :
c) wp_site :
domain : http://www.funbeli.com
path : /

domain : http://www.2aek.com/funbuy (if wp files are in sub folder)
path : /funbuy/

d) wp_sitemeta :
siteurl : http://www.funbeli.com
siteurl : http://www.2aek.com/funbuy (if wp files are in sub folder)

Then edit wp-config file in wp folder :
define('DOMAIN_CURRENT_SITE', 'www.funbeli.com');

define('PATH_CURRENT_SITE', '/');
define('DOMAIN_CURRENT_SITE', 'www.2aek.com');

define('PATH_CURRENT_SITE', '/funbuy');
1
Pau On

Try adding an http:// to your WP_HOME (Site Address (URL)) and WP_SITEURL (WordPress Address (URL)).