Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
25 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
17 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
22 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
23 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
16 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
40 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
25 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
26 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
68 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
24 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
260 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
42 views

My WordPress website had drooped [closed]

i had changed the URL of my website then i can't access it.How i can return it the message appear "this site can't be reach" after change the URL
-1
votes
1answer
20 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
32 views

how to remove certain words from url wordpress

i am using wpml for my wordpress site, it adds language code to the website url, i would like to remove the language code from url except homepage. i got the following codes, but it is not working, no ...
0
votes
0answers
70 views

Multisite wrong plugin assets URLs for sub-site

I have two sites in a multisite installation : https://campo-de-arroz.com/ is the main site https://casas-turquesa.com/ is the second site If you look at the source of the second site, you will ...
0
votes
0answers
91 views

How to show subdomain url in address bar of wordpress multisite?

I have created multisite "example.com" successfully and have additional site "example.com/services", "example.com/support". In address bar its showing url as same as subdomains in Wordpress. I want ...
0
votes
0answers
11 views

Local copy of 2 wordpress sites

I have got two wordpress sites which are located on different servers. Now i want to merge the sites. I want to place second site in subdirectory of first site. I created two folders with wordpress ...
0
votes
0answers
316 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
51 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
763 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
17 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
0answers
25 views

How to generate Post url to utf-8

My URLs use Bengali characters. So, when my URL is https://biggoit.com/এন্ড্রয়েড_এপ it turns into https://biggoit.com/%39%29%39. How can I make them utf-8? Because it causes problems when I submit it ...
0
votes
1answer
65 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
496 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
46 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 ...
4
votes
1answer
269 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
42 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
40 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 ...
0
votes
1answer
172 views

Accidentally changed website url

Hello i accidentally changed my wordpress url and now cannot access admin. can anyone tell me how to fix this please? i don't have access to c-panel either. I tried adding this to wp-config.php via ...
0
votes
1answer
26 views

URL problem in my site

Recently I publish my site. I moved my site form localhost to server. I change all config file but url site is redirecting for ohter url. The site only show the nav-bar and in the content part show ...
0
votes
1answer
74 views

Page inside custom post type (url rewrite?)

I am trying to create a page that I can use inside of a custom post type. I have a CPT named forums, so the url is: example.com/forums I would like to have a page called new-topic with the url: ...
1
vote
3answers
1k views

How to remove “http://” When Echoing URL?

I'm seeking to echo the domain name (url) without the 'http://' (or 'https://'). I've created the following: <?php $surl = bloginfo('url'); $findh = array( 'http://' ); $replace = ''; $outputh = ...
0
votes
2answers
67 views

Changing the website URL to the root folder

Right now on my root folder, I have an "Under construction" page. So just an index.html, and a style. Then I have a test folder with Wordpress in it, so my website URL is root/test/wordpress. I want ...
0
votes
0answers
29 views

Duplicate WP Migration affecting site on separate domain?

I recently tried to back up my WP site to another (completely separate) web server. I ftp'd from Server 1, uploaded to Server 2, exported my SQL table from Server 1, imported to Server 2, and edited ...
0
votes
1answer
12 views

redirect word-press page with page values

I am trying to redirect my wordpress page . This code is working good. <a href="'. get_permalink('dashboard') .'" class="wpum-profile-account-edit">'. __(' (Edit Account)', 'wpum') .'</a>...
0
votes
2answers
5k views

Cannot access Wordpress website from external IP while internally it is working properly [closed]

I have setup a small website using LAMP (Raspbian) and Wordpress. No domain name will be registered for the website. For the moment I am accessing the site from inside the local network. To access the ...
0
votes
2answers
73 views

My permalinks for all pages and posts now include old page titles as parents/categories

The permalink structure has changed with old entries as well as any new entry (post, object, etc) from THEN to NOW THEN: constructstudies.com/(page slug or object label) NOW: ...
0
votes
1answer
4k views

Can't log in. WordPress says my account doesn't exist [closed]

I used hostgator to host my WordPress site. At the time, I couldn't find a way to keep the URL for the site as mysite.com, and I was in a rush so I made it mysite.com/main and figured I'd just change ...
0
votes
1answer
18 views

Wordpress switch domains

So i am using cpanel on my website and i have public.html/site.com folder and there was one wordpress installed. I created subdomain test.site.com which root was in publilc.html/test and i have ...
0
votes
0answers
1k views

Remove index.php from URL (WP installed in subdirectory)

I am trying to remove the annoying "index.php" from my URL. WP is installed at /www/html/wordpress. I already tried removing index.php from permalink and changing .htaccess as suggested here, but none ...
1
vote
3answers
421 views

Wrong wp-admin URL

I freshly installed a WordPress site and I configured it behind a reverse proxy with site URL - http://example.com/hello Problem I can reach the admin dashboard page, however I cannot go further as ...
0
votes
1answer
34 views

Google verification challenge with file location

Our team lost access to our Google Analytics account and the only way we can get it back is by inserting a text file into our website. However, the link for uploading files is something like www....
1
vote
0answers
304 views

wp_options siteurl and home hardcoded?

We received a WordPress site from the marketing team of our company and we successfully managed to get it up and running on a staging server but, we have now moved it to production and realized that ...
-1
votes
1answer
2k views

'Too many redirects' error after changing site URL in Wordpress [closed]

I'm having some issues with setting my Wordpress and site URL to the https and www version. I'll use example.com, instead of my actual site address, but here is the gist of my issue: I had my ...
1
vote
1answer
445 views

Moving from http to https, and www. to non-www URL

I'm really battling with something here. I'm trying to change my site to go from www. to non-www, and also http:// to https:// I've updated the settings in options-general.php (WordPress Address (URL)...
1
vote
1answer
37 views

Unable to load WordPress local site after changing WordPress Address (URL) and Site Address (URL)

I have setup WordPress in my local machine and worked fine. I have accidentally changed WordPress Address (URL) and Site Address (URL). Now I am unable to access the local site. How can I fix this ...