The site_url template tag retrieves the (admin/backend) site url for the current site (where the WordPress core files reside) with the appropriate protocol, 'https' if is_ssl() and 'http' otherwise.

learn more… | top users | synonyms

0
votes
3answers
32 views

How do I get WP site to show in both root and sub-directory

My individual WP site is installed in a sub-directory (e.g., example.com/wordpress) and I would like visitors to be able to view it from BOTH the root directory (example.com) AND the sub-directory (...
1
vote
2answers
22 views

Avoid the removal of “https:” from URLs

Wordpress is changing all my urls from "https://www.example.com/..." to "//www.example.com/..." for example: <link rel="canonical" href="//www.example.com/"/> I don't want this to happen, ...
1
vote
2answers
846 views

Remove site root trailing slash

I am using Wordpress for a "news" section on a e-commerce site. So the root of the wordpress install is in a sub-folder. www.mysite.com/news I have setup the home & site URL to reflect this in ...
0
votes
2answers
274 views

Displays url's twice and getting 404 errors after activating

I have activated SSL to my site On my wordpress multisite, I am getting 404 errors when I am entering a correct url for example http://site.org/wp-admin it automatically redirecting and giving ...
0
votes
1answer
17 views

All styles are looking for the site URL twice

I am migrating a production server to a development server. I have archived the public_html folder and migrated the database and imported it to the new server without any problems. When I load the ...
0
votes
1answer
24 views

Changing siteurl breaks site

I am hosting my site on amazon ec2. I have purchased a domain name via godaddy and have forwarded it to the IP address of my amazon instance. I forwarded with masking turned on so that users do not ...
0
votes
1answer
44 views

How to add www to images?

I have site with the http://domain.com but I want to have http://www.domain.com so I have changed it in Settings. It's working great now for all pages and posts. But for images and all attachments, ...
0
votes
1answer
22 views

Hide some shortcodes on posts from back-end

I searched everywhere on the web and I didn't find something that could really help me. Here is my problem; I use a plugin that provides shortcodes to show a file in a page or a post. For each file I ...
0
votes
1answer
61 views

Unable to get Wordpress's apply_filters('site_url') to return a https scheme

I am in the middle of migrating a Wordpress site to being entirely https://, but I am having trouble with the login page. The login page itself is loading with the https:// scheme, but the form ...
0
votes
1answer
49 views

Blog broken after changing Site/Home URL

I have two blogs installed in the domain foo.com: foo.com foo.com/marketing They different WP installations which share the same domain. Database tables from the /marketing installation use a ...
0
votes
1answer
90 views

Error 404 wordpress redirecting URL

i'm having problems after trying to redirect my website with wordpress. I wanted not to have something like that: "www.example.com/wordpress/". So I did that in the wp-config file: define('WP_HOME','...
0
votes
1answer
26 views

How to retrive previous Domain URL in Wp

One of my firend accidently! Changed the WorsPress domain address to his expired domin address now we can't even connect to WP Login Page and WP is redirecting us to a domain address which does not ...
0
votes
1answer
43 views

Top Admin Bar Never Shows Up

So I recently moved a site to a new domain and updated the URL to reflect the changes in the database as well as in the wordpress backend. wp_head and wp_footer are placed respectively in header.php ...
0
votes
1answer
89 views

Sub-domain or 2nd, temporary different domain?

I'm developing a Wordpress site for a website that already exists (that's not currently using Wordpress). The current website cannot be taken down until the new Wordpress site is ready to replace it. ...
-1
votes
1answer
21 views

Siteurl code for links

I'm working on a wordpress website for my friends bussines and I'm working on it on my personal server to then export it and import it on his server when it's done. And one some of the pages I've ...
3
votes
0answers
137 views

Prevent “main” WPMU site_url() being returned in functions

I've noticed that in a WordPress MU install with domain mapping enabled, some functions return URIs that don't use the current WPMU site's primary domain name which possibly means they are "WPMU ...
1
vote
0answers
13 views

WordPress: how to change URL for individual MultiSites?

Currently we have a MultiSite setup for our main website, and the URL's appear as follows: http://sub.domain.com/site-a (Site A) http://sub.domain.com/site-b (Site B) Site A is OK as is. But we ...
1
vote
0answers
21 views

A URL that links specifically to the mobile version of my site?

I (due to my participation in a certain ad network) need to provide (for a certain ad box) a link that specifically shows the mobile version of my site -- regardless of what device I actually am ...
1
vote
0answers
51 views

How can I remove the folder from a Multisite URL?

I necessarily have a multisite installation in a subfolder. For most of the Sites this is fine, but I would like to remove that folder entirely for another Site. Like so: http://example.com/banana/...
1
vote
0answers
21 views

Session Expired when WordPress Address (URL) and Site Address (URL) are different

I followed this article to allow me to put our company's WordPress blog on a subdirectory of our Heroku hosted site: http://nicolasmlv.com/wordpress-in-your-rails-app/ This says to add this code to ...
1
vote
0answers
18 views

Dynamically update Site/Wordpress Address

Is anyone aware of a PHP method to use the linux server's currently assigned IP address as the Wordpress Address and Site Address? I'm not too worried about breaking the site, because it's ...
1
vote
0answers
63 views

get_template_directory_uri not dependent on WP_HOME in wp-config.php?

For testing on mobile devices in my local network, I've set up xip.io according to this blogpost I can access the site, but even though I added the following to my wp-config.php define('WP_HOME', '...
0
votes
0answers
18 views

Remove HTTP: from the site URL and just keep // in it

I am building a website for my company which loads over HTTP inside the company and over HTTPS outside company's network. This is a compulsion and there is no way we can avoid it. The site needs to ...
0
votes
0answers
14 views

How to set up a multisite with hierarchical URL structure?

I need to set up a multisite WP site with the following subsites: example.com example.com/nuts example.com/fruits/oranges example.com/fruits/apples/red example.com/fruits/apples/green Each will ...
0
votes
0answers
17 views

same users different websites other then wordpress

I am creating a network of sites. I have some wordpress installations as well as some other scripts installations. I know that i can use single wordpress users table for different wordpress ...
0
votes
0answers
79 views

Changing SITE URL in multisite WP install

my situation is: I have one WP 4.4.2 multisite install working. I have one domain www.something.com that redirects to my client's old web site. (simple html 301 redirect), in a separated folder from ...
0
votes
0answers
30 views

2 different Home Pages for different language url part

I'm in trouble with multilanguage site I would to have for all pages under url www.example.com/EN An EN HOMEPAGE and for www.example.com/IT another HOmePAGE. How can I dot this? I already know this ...
0
votes
0answers
37 views

WP_HOME & WP_SITEURL Config

I'm having issues running WordPress on Server 2012 R2 on IIS. I've configured WordPress before on a Home Server before and have it running, but this configuration is a little more difficult/advance. ...
0
votes
0answers
11 views

changed URL and location to root of my wordpress site, can't get it to work properly

I have had to move the worpress blog to the root folder as well as changed its URL. I have done everything I was supposed including changing the URL within the database as well as doing it through the ...
0
votes
0answers
31 views

500 error after WP homepage url changed

So, I have error 500. I tried to replace with old htaccess file, but Wp don't let me login cause I have offline mode. How can I set wp url back? SOLVED Add these two lines to your wp-config.php, ...
0
votes
0answers
79 views

siteurl value getting populated with junk in wp_options table

My website was getting this error on every page : Catchable fatal error: Object of class WP_Error could not be converted to string in /home/juhisheth/public_html/wp-includes/default-constants.php on ...
0
votes
0answers
23 views

Embed Site url and home inside the code

I'm trying to make 2 wordpress sites use the same database , i tried working on the wp_prefix() but there is nothing i can do about the Site Url and Home fields on Wp-option table , so i ...
0
votes
0answers
39 views

site_url() returns with additional backslashes

I am using site_url() function and it returns the address as http:\/\/vip.local\/cc where I can see that WP automatically adds unnecessary backslashes. Is this for some escaping purpose? I tried using ...
0
votes
0answers
33 views

Moving Site: Is Re-downloading Files After Changing URLs necessary?

On the Wordpress Codex: Moving Site page under Changing Your Domain Name and URLs, it states that you should re-download your site files (Step 5) after changing your site URLs (Step 4). Is Step 5 ...
0
votes
0answers
44 views

moved site to development box, WP works fine except that only root of site is served

I have a small, ultra-low traffic WP site. Let us call it www.mysite.com. This same URL is listed both as the "Site Address" and the "Wordpress Address" under the wp-admin Settings panel of the live ...
0
votes
0answers
108 views

Hijack site url on sub domain for translation

Ok, i have complicated issuse (i think)... i created a site that has 3 languages without any plugin since none meet my needs.... i create 2 sub domains named: he.example.com en.example.com ...
0
votes
0answers
34 views

Index (Home) page not displayed when running wordpress in a subdirectory

I'm running my wordpress site in a subdirectory. Do do that i followed the instructions here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory Before i had the url: mydomain.com/...
0
votes
0answers
142 views

Is there a way to get the site_url in HTML code?

I have a WordPress website and it sends some transactional emails to the users. I create the template using HTML and I've been wondering if there's a way to add the <?php echo site_url() ?> in ...
0
votes
0answers
130 views

Remove blog slug from WPMU?

i have wordpress MU, everything is fine in child sites , but in the main site in the permalink structure have been changed itself , mean that after the site url it have like http://example.com/blog , ...
0
votes
0answers
54 views

Change Wordpress's URL from “abc.com” to “abc.com/de”

I have a domain. Currently, the site loads at that domain's root-- abc.com-- but I want it to to load at abc.com/de because I intend for the site to later become international. I looked already at ...