The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [site-url]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

How to use site_url() in Elementor

I have created a website in wordpress, which is currently running as sub domain of a company. This website contains large number of pdf documents, which are belongs to different categories. The pdf'...
0
votes
1answer
17 views

Include www prefix in site URL

I'm setting up my first wordpress site (on a WP Multisite server). In the 'sites' info page I am asked to enter the site URL. Should I use 'www.mydomain.com' or 'mydomain.com' ? (Does it matter?) ...
0
votes
1answer
20 views

Headless WordPress – Issue with plugin path

Working on my first decoupled site. Backend is handled by WordPress and lives on the subdomain admin.mydomain.com and the frontend lives at mydomain.com. The first issue I saw with the headless ...
1
vote
1answer
15 views

URL parsing - what is it?

I am reading the conversation about WP_USE_THEMES and I don't understand the term 'URL parsing'. Can someone please explain that to me in the context of Wordpress ? Google didn't produce significant ...
1
vote
0answers
45 views

disable site_url redirect in wp-login.php

I'm running a wordpress install on nginx, and I'm looking at novel ways of securing wp-admin. I know theres more than one way to do this (e.g. adding an http basic auth layer, login lockdown, 2FA, etc....
0
votes
0answers
14 views

How can I prevent our new WP site redirecting to the one it's meant to be replacing?

We're in the process of updating our website. The old site and the new site live on different servers. Our domain name currently points to the old (live) site. In our new site's WP admin, I changed ...
0
votes
0answers
10 views

Server searches for wp-admin inside a nonexistent subdirectory when behind AWS Apigateway

I have an a bit convoluted problem and I am looking forward to hear if anyone has a solution. My wordpress installation lies behind an amazon Apigateway. This behaves like a CDN and serves my website ...
1
vote
1answer
67 views

Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past

(I've resolved this - sequencing error in wp-config.php - thanks to this answer elsewhere). I've moved a site dev to production and everything is working correctly except the login form, which is ...
0
votes
1answer
28 views

Wordpress replaces “https://” with “//” for Site & Wordpress-URL

When I save "https://example.com" in General Settings as my Site & Wordpress URL, it gets replaced by "//example.com". To analyze the problem, I checked the Wordpress database, but 'WP_HOME' and ...
0
votes
1answer
24 views

Change of “home” results in timeouts (only on index.php)

So this question is probably a result of me not completely understanding the inner workings of Wordpress - especially the home variable. So here is what I did, and after that I will ask my question. ...
1
vote
2answers
28 views

How to move 1 WP site from a mult-site environment to a different multi-site area

How to move 1 WP site from a mult-site environment to a different multi-site area? Doing on same server if that assists at all. We know how to move a site from a multi-site area into a single site ...
1
vote
1answer
29 views

When clicking on “home” page from any other page, it goes to IP address and my website doesn’t load

I recently set up my WordPress website and just noticed that if I click the home page from any other page, it points to the IP of my instance and the website won’t load. I have checked the URL(s) from ...
0
votes
1answer
32 views

Multisite with different domain names on different servers

Consider the following servers with their domain names: Server A: Domain A1 (Master Domain) Domain A2 (Addon Domain) Server B: Domain B1 (Master Domain) Domain B2 (Addon Domain) First, ...
0
votes
0answers
44 views

WordPress changes URL on admin page

We have 2 projects. https://host/ - first (on Node.js), https://host/modules/ - second (on WP). Before that nginx stays as reverse-proxy. When I'm on page 'modules', everything is good, but when I go ...
1
vote
1answer
28 views

Wordpress keeps redirecting me to online site [closed]

I need to create a copy of a WordPress in a local environment. I have alread done some research and Included the following line in wp-config.php (at it's start, also tried at the end) define('...
0
votes
0answers
9 views

Backend not loading after switching to public domain

I developed the website on a private VPN protected IP address. After I was done, I pointed a domain to a public IP that can be reached without a VPN which itself is pointed to the private IP. I then ...
0
votes
1answer
91 views

404s after changing site url in settings

I was working on my Wordpress site (hosted on DigitalOcean) using the ip address as the website address. I decided to change the address to my domain name so I went into settings and updated the ...
-1
votes
1answer
49 views

Advice on WP site structure using multisite

Can multisite be used in such a way to have a top level Network site (with a couple of pages) and additional multi sites which will be child pages of the Network site pages? We need to build a WP ...
0
votes
0answers
12 views

htaccess questions wordpress multisite in combination with other cms

I installed a wordpress multisite on a server that already contained different subdomains and another cms installation (wolfCMS). It currently works fine by going to the root.nl/wordpress/$year/ ...
0
votes
0answers
49 views

redirect to translated page with echo site_url()

<li><a href="<?php echo site_url('test-eng'); ?>"><?php _e('test')?> </a></li> I have the code above, that redirect me on my page-eng. If i have a translated ...
0
votes
4answers
114 views

How do I change the Multisite URL?

The links in the navbar menu, in (My sites > Manage the network) are pointing (and keep redirecting) to incorrect URLs. The incorrect URLs are in this pattern: https://https//www.domain.com/wp-admin/...
0
votes
3answers
22 views

Showing my server ip in source code for several links not for all links

So my problem is that I have hosted my wp from my localhost to aws light sail and assigned a static IP to my instance and then I mapped the website with my subdomain and then changed site address and ...
0
votes
0answers
15 views

There is how to change url domain on some posts?

There is how to change the URL on some posts? Like, for example, my website is www.mydomain.com, on posts it's like www.mydomain.com/post now can i change some posts to a url like www.myotherdomain....
0
votes
0answers
53 views

How to delete blog word from wordpress url?

I try to setting up wordpress to display my posts such as http://www.domain.com/postname but the default url is http://www.domain.com/blog When I try to use custom structure for urls such as /%...
1
vote
0answers
18 views

Can't control Wordpress Addresses from admin panel

I have already created several sites in WordPress and I have always been able to manage the link of my site with or without https and with or without www through the settings in options > general, as ...
0
votes
1answer
24 views

Landing function through URL

I have a landing page with 3 buttons that have respective functions with them to hide/unhide content based on user selection of those three buttons. Is there a way I can have the user land directly ...
0
votes
1answer
21 views

Keeping the URL but changing the site - How?

I'm trying to move a wordpress site to the new URL from new.XX.nl to XX.nl for someone else. I changed the URL in wordpress in the new site, but it only resulted in me being unable to login into any ...
1
vote
1answer
71 views

Pass GET params to URL from a main menu item

I have a booking form on page "Training" and I want it to be pre-filled with logged in user's details. For that I need to pass those details (name and email) to URL and the form should automatically ...
2
votes
0answers
21 views

How can I change all links on pages to point to a different domain from where the site is hosted?

I saw this question: How can I change permalinks to use a different domain and path from where the blog is hosted? and was wondering if someone can help me. We're hosting a wordpress blog on WP ...
0
votes
1answer
45 views

Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)

I have my normal HTML/CSS on my root folder and Wordpress installed in a subfolder (domain.com/subfolder). When I log into my wp-admin subfolder as admin, it directs me to a dashboard page which ...
0
votes
2answers
27 views

How do I avoid messing up URLs when switching from example.com/subdir to example.com?

The goal is to make my hidden Wordpress site go from http://example.com/subdir (which I have now) to replace the olde site at http://example.com (which is what I want when I take my WP site live). In ...
0
votes
1answer
41 views

How to Use Custom Meta Field Instead of CPT Title in Post URL

I have a custom Post Type which is not using any of WP builtin supports like( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ). Instead I am using my own metaboxes to publish the CPT. ...
0
votes
1answer
247 views

Replace “http://localhost:8888/” by website URL in Wordpress

Due to some recent security breach, I had to replace my website on the server with all the new local files. Question: Now I see "http://localhost:8888/" string in my blog posts ( e.g. image sources ...
0
votes
1answer
18 views

Updated Site URL but it is not reflecting the changes

I have my Wordpress installation located in "webroot/example.com/WP" folder. Currently, http://example.com shows a 404 page not found error. However, http://example.com/WP loads the Wordpress site. ...
0
votes
1answer
26 views

How to set a home page on a WordPress site?

URL returns this page: https://www.things-to-do-in-sebring-florida.com/ Link to home page returns this: https://www.things-to-do-in-sebring-florida.com/things-to-do-in-sebring-florida-2/ I recognize ...
0
votes
2answers
27 views

Two sets of url one content?

How can I configure to have two sets of URL that actually using the same content? For example: (set 1) samplesite.com samplesite.com/about/ samplesite.com/contact/ samplesite.com/projects/ (set 2) ...
1
vote
3answers
1k views

Concatenate site_url and string doesn't work

I'm trying to concatenate my site_url and a string, but it doesn't work. This is what I'm doing: $myurl = site_url(); var_dump($myurl); $url = "https" . $myurl . "/inbox/?fepaction=viewmessage&...
-3
votes
1answer
52 views

Lost WordPress website access after changing URL [closed]

I have changed the Site URL and Home URL of my website, after that I am not able to access it. The message appearing on the screen is "this site can’t be reached" How do I get the access back?
-1
votes
1answer
37 views

change the URL title and tagline

I am using the Divi Builder and want to change the Tagline of my page. I already changed it in Seetings --> General. Nevertheless, it doesn't change on my page even though i refresh it a couple of ...
0
votes
0answers
713 views

How to properly give Wordpress its own directory

I'm sorry if this question is maybe a noob one, but I'm having some problems in correctly giving Wordpress its own directory and make it work. I've installed WP in a subdirectory, like www.example....
1
vote
0answers
112 views

Wordpress rewrite multisite blog url

I have a plugin which creates sites progmatically. What I need to do is ad a /s/ inbetween the domain and the site name in the URL. So http://domain.com/site-name/ becomes http://domain.com/s/...
0
votes
1answer
1k views

Update siteurl and home in multisite subsites to https

I want rewrite the siteurl and home options on multisite subsites. In wp-admin/option.php this is it: if ( !is_multisite() ) { if ( !defined( 'WP_SITEURL' ) ) $whitelist_options['general'...
1
vote
1answer
19 views

Split Conference Wordpress Page in different years

let's assume I have a page called conferencepage2018.page This would be a bad way of doing it since the conference is being held every year. What am I supposed to do if I want to split the Wordpress ...
0
votes
1answer
69 views

WordPress site isn’t reachable after site & home URL modification

First of all the technical details: OrangePi Zero (512Mb) Debian for Orange Pi Apache2 PHP5 MYSQL Wordpress I have at home an OrangePi and I installed a WordPress on it. I registered a DNS name (...
0
votes
1answer
727 views

change home_url and site_url but don't redirect to home_url and site_url on load

I have two domains uat1.example.com and uat2.example.com pointing to same wordpress installation. I want to change the home_url and site_url for all links in the website to uat2.example.com, but it ...
1
vote
1answer
78 views

Do I need to use the esc_html() function on hard coded links?

I understand when using certain WP functions like site_url(); you should escape these with the esc_html(); function in the following manner: <?php esc_html(site_url()) ?> My question is, if I ...
3
votes
1answer
391 views

Dynamic URL to reference custom PHP files

Beginner Wordpress developer here... I am currently developing a Wordpress site for a device of mine. My idea is to be able to connect to the device which acts as a web server. I should be able to ...
-1
votes
2answers
25 views

permalinks url with woocommerce

I have noticed that when i navigate to a product in my woocommerce site the URL is https://mydomain.co.uk/product/procrastination-facebook-font-parody-graphic-quality-t-shirt-tee-mens-unisex/ and ...
0
votes
1answer
66 views

dynamic site link for future migration in echo do_shortcode()

I'm doing like an WP archive migration of old sites/themes which seems to only work under php 5.5 and WP 3.8.22 There are some site URL which are absolute as for a json timeline. How could I have a ...
0
votes
1answer
87 views

Passing taxonomy id of taxonomy clicked on one page to another page

I'm a beginner, and not very well versed with Wordpress. This is my setup - I have plugins Pods Admin (for custom post types and custom taxonomies), and Page Builder by SiteOrigin (for creating my ...