Stack Exchange Network

Stack Exchange network consists of 175 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 [home-url]

The tag has no usage guidance.

0
votes
0answers
23 views

Using Wordpress solely as a Backend - dealing with WP_SITEURL

I've built a website in Angular that leverages Wordpress as a backend, specifically using its REST API. I am replacing an existing website, and my client does not intend to change the original ...
0
votes
0answers
15 views

How to remove /home from my site? i can't even access it from dashboard

sorry for my bad english. I have new design for my homepage, i create it in (https://bonolo.id/) URL and make it my homepage. it's working. but the problem is the old ones (https://bonolo.id/home/) ...
0
votes
3answers
21 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 ...
1
vote
1answer
21 views

Where is the home URL set in Wordpress?

We're using the Alone theme in Wordpress 4.9.9. When I go to the settings page, it lists the home URL as http://sitename and the site URL as https://sitename. Where in Wordpress is the home URL set?...
0
votes
1answer
10 views

After deleting /home url from Wordpress general settings I cannot display site's urls

I delete the /home url from setting and I cannot access admin page any more. I change wp-config.php file this define('WP_HOME','http://www.domainname.com/home'); define('WP_SITEURL','http://www....
0
votes
1answer
42 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 ...
-3
votes
1answer
49 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?
0
votes
0answers
98 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 ...
2
votes
0answers
51 views

Multilanguage URLs

I am trying to achieve multilanguage behaviour for my website. I'm very close but not quite there and feel like I'm running in circles. That's why I decide to ask for your help. I'd like to use URLs ...
0
votes
1answer
14 views

Creating Menu Links in a Custom Theme

I'm building a custom theme for my own portfolio and I'm just going to use the static menus I have in HTML template design. Within this though I would like to add a function that sets the link ...
0
votes
1answer
493 views

WP in subfolder hidden by htaccess, but media links show the subfolder

The WordPress install is in /public_html/example. In the .htaccess file in public_html I have this code: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^...
0
votes
1answer
67 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
0answers
115 views

How to echo site url if not on index.php while using anchor based nav

I've been attempting to hack together a single page Wordpress theme. So far I've had success in displaying the page loop for content and nav, and I've used JQuery page-scroll to animate the navigation ...
0
votes
1answer
582 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
votes
2answers
409 views

Home page returns 404

Must have inadvertently changed something recently as when visiting the base URL (i.e. the homepage) for my local development site it returns a 404. All of the other pages seem to work fine. As per ...
0
votes
1answer
112 views

Website URL not getting updated

I am using WordPress 4.8.2, and host is GoDaddy (shared hosting). I developed my client's new website under a sub-directory like so: http://www.example.com/_new/ I did this so that the old website ...
1
vote
3answers
2k 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
1answer
17 views

My question:When I started my website, the “page not found” error always came up

I make sure my .htaccess is set to default and I try to install a freshly new WordPress but nothing changed.
0
votes
1answer
262 views

After Migration From dev, Only my Links to the Homepage Still Redirect to dev

I'm migrating one of my WordPress sites from a development version to the live version. The problem I'm having is with just the homepage links. the homepage link in the masthead is redirecting to ...
0
votes
1answer
31 views

How to get different homepage layout, based on the URL and customizer

Not sure If my question is clear enough. I want to show different layout of the index.php, based on the URL and customizer settings. I see this format in some themes: demo.website.com/theme/?...
0
votes
2answers
6k 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
1answer
287 views

Form action unfamiliar

I am refactoring some code in the header.php: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://...
0
votes
1answer
49 views

Get value from URL with different types of parameters

I'm kind of new to wordpress. what I want to do is; For my home page I want to build URL like, www.example.com/email/abc@example.com and fetch value with email like $wp_query->query['email'] but ...
1
vote
0answers
345 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
vote
1answer
39 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 ...
0
votes
0answers
311 views

Redirect to Page after Login (with variable)

I want to redirect subscribers to a special page after login to my WordPress Site ("http://www.my-cool-page.com/coolpeople") where "coolpeople" is a regular WordPress page. This is my code to redirect ...
1
vote
1answer
218 views

Adding subdomain to home_url for “add_menu_page”

I am trying to add a Wordpress admin menu item that will point to a URL which is http://docs.[currentdomain] My plugin code is currently: function user_manual() { add_menu_page( __( '...
1
vote
0answers
84 views

query_vars in home, not loading the “home” page

My wp home is: domainname.com/ But if I enable a query_var, like so, in functions.php: function add_query_vars_filter( $vars ){ $vars[] = "section"; return $vars; } Then: domainname.com/?...
3
votes
1answer
7k views

Unable to load static front page on home url

I installed wordpress in /wp/ directory. So in my blog every URL had /wp/ in it. I followed multiple articles(1,2) and was able to remove the 'wp' from URLs. before - example.com/wp/post-1-name after ...
0
votes
1answer
991 views

Echoing home_url() returns current url in searchform.php

In searchform.php my search form looks like this: <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div> <...
4
votes
1answer
648 views

Preferred Use of home_url()?

This isn't a problem but rather I am just curious to see how others are using this function. The codex does not really say a preferred method of use although it does provide some straight-forward ...
0
votes
1answer
891 views

How to make custom page link to root automatically?

I've put / in my Home custom page link, and locally my server is localhost:3000 and it works fine, but on my server the url is www.mysite.com/theproject, but / there does not lead to www.mysite.com/...
-1
votes
1answer
4k views

500 error after WordPress homepage URL changed

I'm getting an Error 500. I tried to replace with old .htaccess file, but Wp don't let me log in because I have offline mode. How can I set the WordPress URL back?
1
vote
1answer
930 views

WP site URL changed to have HTTPS but still homepage does not redirect

I've changed the WP site URL to include https://www & it's been a while. Entire site is correctly reflecting it. But unless I add following in .htaccess, the home page does not redirect ...
0
votes
1answer
131 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 proper ...
2
votes
1answer
471 views

How can I make WordPress serve homepage to different URL?

I would like to set up a landing page and a homepage for my WordPress website. I am new to WordPress, but I am an experienced web developer. WordPress will only serve the homepage content if the URL ...
1
vote
0answers
136 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
46 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 ...
7
votes
3answers
1k 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
30 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 ...
1
vote
1answer
1k views

What is the purpose of storing `siteurl` in database?

Why does WordPress store 'siteurl' and 'home' in the database? It's driving me crazy because I develop locally, deploy to a staging site, AND to a production site, so that's two-three times I have ...
2
votes
4answers
2k views

Remove WPML's home_url filter

The WPML plugin filter's home_url in order to provide a link to the home page specific to the language you are viewing. (So if you are reading a Spanish page home_url() will point you to http://...
3
votes
2answers
8k views

Setting a permalink for the home page?

I have a static default wordpress home page. As you know if you have a homepage on wordpress you can not set a permalink through the admin options, you can only set permalinks for non homepages. Does ...
1
vote
2answers
472 views

Using Multiple Queries of “home_url” vs. Calling a Variable Multiple Times

Question Since I am using multiple instances of home_url() in one page template, I was curious if the following method would speed up my page load time. My method is to store the output of home_url() ...
0
votes
1answer
33 views

How can I include a file related to blog URL? Nothing seems to work

When I was building my website locally using WAMP, I was just using simple include '/extras/file.php'; Of course, that would start at the root folder, and look in the extras folder. However, now I'm ...
2
votes
1answer
2k 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
1answer
76 views

Accidentally messed up URLs

So I installed WordPress on my Apache server and I changed the URL in the WordPress Admin Control Panel to http://website.com/ from http://website.com/wordpress and now it's taking me to my old index....
0
votes
1answer
139 views

Changing the site URL

Overview: I have a self-hosted WordPress installation currently without a domain. Example: http://xx.xx.xxx.xxx/~someaccountname In a few days a domain will be pointing to this installation and I'...
3
votes
1answer
161 views

How to set ipv6 address as siteurl?

I have try to set ipv6 ip address as home and site url, but it seems not work perfectly. From there: http://[2001:da8:d800:71::250]/wordpress/ (if you view the source) we see that some url, such as ...
0
votes
1answer
56 views

Redirect when the site's home is set to a page

Is it possible to have Wordpress display the full URL string when a specific page listed more than one level deep is set up as the home page under Reading settings? If I have example.com/parent/child ...