Questions tagged [home-url]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 views

Set a specific page as homepage

I use DIVI and i need to have a custom page (build with theme builder) set as the homepage. there is no shortcode available for this page, so i use a simple redirection ex www.myste.com/ ---> www....
0
votes
0answers
20 views

one url for all pages

Recently I just stocked over something which I can not fix or solve! I like to use a single url like www.mywebsite.com or www.mywebsite.com/something for all my pages. the reason is that I have a ...
0
votes
1answer
11 views

I changed the site address and wordpress address from localhost to my ip and it doesn't work anymore

The problem: I'm running wordpress locally on a mac using mamp. I used to access my wordpress site with localhost:8888/mysite. I wanted to let other people see it using my IP address so I went under ...
0
votes
0answers
28 views

Got 404 error when changed siteurl via DB in Wordpress

The problem is that I have changed the wp_options table with site URL and home fields from http://localhost/WordPress to http://localhost/test I get 404 errors or Object not found error. What I ...
0
votes
0answers
27 views

Remove Home page slug in translated pages

I'm building a website in wordpress, and i've decided to use a custom page "home" for my website's home. I know that i could use the index.php file for the home page , but i needed to use some plugins....
0
votes
0answers
25 views

SIte broken after changing WordPress Home URL

Hi I was having an issue with new posts not loading/showing the Featured images and an article online suggested to go to Settings/General and make sure that WordPress Home URL matches exactly the Site ...
1
vote
0answers
24 views

Add a prefix to all url's of the WordPress website except the homepage

I have a website at the moment, f.e. website.com. The last weeks we also created 2 translation websites: website.de and website.nl. In 2020 a lot of other domains will follow. That's why we would ...
0
votes
1answer
17 views

Using Static HTML instead of the `home_url()` WP function

When I add links to pages in a custom WordPress theme I use the following function: href="<?php echo esc_url(home_url( '/contact-page' ));?>" If I don't use the home_ur() function, but the ...
0
votes
1answer
65 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 ...
2
votes
2answers
416 views

What's the difference between home_url() and get_home_url() from a developmental point of view?

Both functions return the website url. And, as home_url() needs sanitization (for example <?php echo esc_url( home_url( '/' ) ); ?>), why it is this snippet of code, instead of <?php echo ...
2
votes
1answer
215 views

Logout redirects to a broken page(home URL is omitted)

I'm using the latest version of WP. I have a problem, where clicking the logout button from the admin panel redirects to a completely broken link: http://wp-login.php/?loggedout=true As you can ...
0
votes
1answer
28 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. ...
0
votes
1answer
221 views

What is the difference between `Home page / Archieves` and the page set as homepage?

In the image below, I set the page Welcome! as my homepage. There is no link to that page, and there is only one way to go to the homepage: click on the banner. However, there is two different items ...
0
votes
0answers
44 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
3answers
34 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
108 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
14 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
110 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
94 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?
2
votes
0answers
68 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
19 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
852 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 ^...
1
vote
1answer
70 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
275 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
912 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
681 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
159 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
4answers
5k 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
429 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
77 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
10k 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
392 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
59 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
467 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
46 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
333 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
303 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
107 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
11k 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
1k 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> <...
3
votes
1answer
1k 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
2k 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/...
2
votes
1answer
1k 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
147 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
1k 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
144 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
48 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
2k 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 ...