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
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 ...
1
vote
1answer
24 views

Allowing Wordpress from non-public address/domain

I am running a development environment with WAMP and hosts file modified accordingly, such as http://mylocalwp. I'd like to allow users over the Internet to be able to access the site using a public ...
1
vote
1answer
27 views

How to rewrite url wordpress?

i am doing WordPress posts filter. As a result of the application forms obtained this url: http://local/rieltplus/category/catalog/?type=flat&price_min=1000&price_max=2000&area_min=5&...
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 ...
2
votes
1answer
57 views

Switch from https back to http

I recently moved my site to https, by installing a SSL-certificate on the server and updating the site address and site home in the wp-admin to use https. Due to some errors my client is experiencing ...
4
votes
1answer
38 views

How to remove /index.php/ from URL's

I'm a pretty basic WordPress user and know enough to install a theme and customize it. I'm helping a friend out with a new website and installed WordPress 4.4.2 in the root directory via cPanel on his ...
0
votes
3answers
64 views

wp-config dynamic hostname in WP_HOME and WP_SITEURL

Are there any disadvantages to using the following code to setup WP_HOME and WP_SITEURL in wp.config for both singlesite installs and multisite installs: /** * Site Host URLs */ $hostname = $_SERVER[...
0
votes
0answers
75 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 ...
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, ...
0
votes
1answer
26 views

How to make tag pages look as /tags/%tagname%/ in the URL?

Example Tag's page, which involves all blog posts tagged with it, resides at /example-tag/ which is problematic for me since a post titled Example Post has the URL extension /example-title/. How can ...
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 ...
1
vote
0answers
12 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 ...
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
0answers
36 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
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, ...
1
vote
1answer
65 views

What does $scheme in site_url function do?

Could someone tell me what the $scheme precisely does in the site_url function? What does it provide and how to use it? Of course I have read the Codex, but since I am not a native English speaker, ...
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
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 ...
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 ...
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 ...
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/...
0
votes
1answer
38 views

Referring to site URL in shortcode argument

Apologies for the noob question -- have searched extensively, and it's probably a forehead-slapper. A plugin I'm using offers a shortcode that takes a URL as an argument; I should set that argument ...
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 ...
0
votes
1answer
59 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 ...
1
vote
0answers
17 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 ...
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
195 views

Change homepage url

is there any way how to achieve this? I've tried to google it, but I have no clue how to call it. siteurl.com - for whole web siteurl.com/news - homepage with news When I add siteurl.com I have to ...
0
votes
3answers
31 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 (...
0
votes
1answer
474 views

How to get_template_directory() properly on local environment

I'm currently developing a site locally in MAMP PRO. When I use get_template_directory() inside of the standard functions.php file, the site path gets output correctly. However, I have a separate ...
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
1answer
102 views

Alternatives to site_url() and get_template_directory_uri()

The problem I'm having is that my Wordpress is set up on localhost, but when I view the site from another computer, "<?php echo get_template_directory_uri();?>/image.png" will return "http://...
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', '...
2
votes
2answers
2k views

Relative or dynamic site url possible?

I have a local Xampp wordpress installation that I am using as sort of an intranet with some people I work with. I require them to be able to access it on our LAN router -- I found that I needed to ...
1
vote
1answer
170 views

What do the schemes login, login_post, admin, and relative mean?

site_url and get_site_url accept a parameter named $scheme. $scheme can be set to http, https, login, login_post, admin or relative. http and https are obvious. What do login, login_post, admin and ...
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
1answer
214 views

Proper way to have multiple installs with a single database

Here's my scenario: I have a development zone with a standard WordPress installation (dev.domain.com/project). When it comes time to showing work to clients, I use version control to copy the dev ...
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','...
1
vote
4answers
789 views

how to use a different domain/subdomain for authors/catagories on single site?

I'm not sure if I phrased this question correctly... My wife and I have one blog, family.com in this example, that we both contribute to. I would like family.com to show all blog posts. me.family....
0
votes
1answer
293 views

Plugin Development - Get Admin Url (Including cases where wp-admin is not used)

I'm currently writing a WordPress plugin, and am looking to retrieve the WordPress admin url. It sounds simple enough - and it is - assuming every WordPress install is using the default wp-admin slug; ...
0
votes
1answer
31 views

Is it risky if I update all url in the database due to my site url changed?

Let's say I have a wordpress site on a subdomain. Initially, I created the site with "www." >>> www.mysite.mainsite.com Now, I'd like to change site url to only mysite.mainsite.com without www ...
0
votes
2answers
132 views

Two domain site: Link base URLs point to wrong domain

I have been running domain.co.za, but recently purchased domain.com. Both domains now point to the same Wordpress site. On domain.com pages all the links point to domain.co.za and on domain.co.za all ...
6
votes
3answers
979 views

Getting the Site URL Including the Front Base

If my permalink structure is set to /blog/%postname%/, how can I retrieve a URL for my site which retrieves domain.com/blog/? With the permalink structure mentioned above, when using site_url();, it ...
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
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 ...
1
vote
2answers
4k views

When moving a WP site, why does wp-admin redirect to old site?

I am in the process of moving a WP site from one host to another. I copied the database and all the files, created a new database and imported the old one. I then changed the wp-config file. The home ...
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 ...