Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [home-url]

The tag has no usage guidance.

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

How to Redirect WordPress domain.com/?anyword to 404 Page?

Recently I Found some error on WordPress sites that when someone enter a question mark after the root domain and type any word, url shows the Home Page of instance: For instance, Root Domain is abc....
user avatar
0 votes
0 answers
19 views

Do I need a DNS on a home network?

Having installed a LEMP stack (nginx) on Ubuntu 20.04 I can run a fresh Wordpress site in Firefox using the IP address 127.0.0.1 with no problems. Using 'localhost' doesn't work. From another Ubuntu ...
user avatar
0 votes
0 answers
21 views

How to make a random dynamic url?

I have a pdf that embedded in a WordPress post. I want to create a random dynamic url for that post, for example: https://example.com/aj3nfjskke383fn Above link should be seen once, it has expiration ...
user avatar
  • 101
0 votes
0 answers
47 views

Wordpress rewrite front page url

I am trying to implement a language prefix to my Wordpress. I now have working Rewrite rules for %lang% tag, query_var etc. Everything works ok, except for front page. What I am trying to do: allow ...
user avatar
  • 1
0 votes
0 answers
140 views

"Blog pages show at most" in setting not working

After the update to the new WordPress version, "Blog pages show at most" (Setting >> Reading) is not working. Even if I change the count as 5 there, the homepage shows 10 articles i. ...
user avatar
0 votes
1 answer
44 views

WP returns to domain root instead of siteurl

On various admin actions (e.g. delete a post), my fresh WP install (dev.mydomain.com/website) returns to the domain root (dev.mydomain.com) instead of dev.mydomain.com/website/wp-admin/edit.php?some-...
user avatar
  • 426
0 votes
1 answer
33 views

Random home page at each refresh between array of page IDs

I am trying to rotate 3 pages as my home page at refresh. Currently I am using this in my functions.php: <?php function my_homepage_redirect() { if ( is_home() || is_front_page() ){ $...
user avatar
0 votes
1 answer
36 views

Redirect htaccess [closed]

I need to help with redirect my page. For example I have websites https://example.com. I need to move content from https://example.com to https://example.com/blog. That is not problem and I do that ...
user avatar
0 votes
1 answer
258 views

Different front page for logged in and logged out user but the same URL in Wordpress

I have two home pages created in WP. One is set as the front page but for only logged-out users. For logged-in users, they see home page 2 as their home page. However, I want the URL for logged-in ...
user avatar
1 vote
1 answer
61 views

Remove / from www.example.com/ [closed]

Whenever I type my domain, example: www.example.com there is a forward slash that automatically appears in Firefox. Example: www.example.com/ How can I remove this?
user avatar
1 vote
1 answer
377 views

How to retrieve TLD domain for the current website?

WordPress has certain variables like site_url and home_url and paths for things like plugins, themes, uploads, etc... but it seems there is no easy way to display current TLD domain. This probably ...
user avatar
0 votes
1 answer
50 views

SSL not working fine, Home url not matching with site url wordpress errors

I deployed WordPress through Bitnami so after adding an SSL certification I started getting warnings from my WordPress dashboard of my site URL not matching with Home URL I was directed to my ...
user avatar
0 votes
1 answer
24 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....
user avatar
0 votes
0 answers
21 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 ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
  • 113
0 votes
0 answers
31 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 ...
user avatar
0 votes
0 answers
93 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....
user avatar
1 vote
0 answers
31 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 ...
user avatar
0 votes
1 answer
160 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 ...
user avatar
  • 838
1 vote
2 answers
261 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 ...
user avatar
  • 1,239
3 votes
2 answers
2k 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 ...
user avatar
  • 95
2 votes
1 answer
939 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 ...
user avatar
  • 125
0 votes
1 answer
53 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. ...
user avatar
  • 103
1 vote
5 answers
6k views

I don't see site_url and home_url fields in wp_options table (phpMyAdmin)?

I wanted to show you this issue. This is happening first time with me in my 10 years career, I have cloned many sites to another domain in past but this is for the first time when I do not see the "...
user avatar
0 votes
1 answer
726 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 ...
user avatar
  • 308
0 votes
0 answers
52 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 ...
user avatar
0 votes
3 answers
256 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 ...
user avatar
1 vote
1 answer
169 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?...
user avatar
  • 111
0 votes
1 answer
23 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....
user avatar
0 votes
1 answer
287 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 ...
user avatar
  • 1
-3 votes
1 answer
322 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?
user avatar
2 votes
0 answers
99 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 ...
user avatar
  • 21
0 votes
1 answer
30 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 ...
user avatar
  • 838
0 votes
1 answer
1k 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 ^...
user avatar
1 vote
1 answer
76 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 (...
user avatar
0 votes
0 answers
387 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
-1 votes
2 answers
897 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 ...
user avatar
0 votes
1 answer
216 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 ...
user avatar
  • 343
3 votes
4 answers
8k 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 = ...
user avatar
  • 31
0 votes
1 answer
18 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.
user avatar
0 votes
1 answer
767 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 ...
user avatar
  • 113
0 votes
1 answer
103 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/?...
user avatar
  • 105
0 votes
2 answers
14k 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 ...
user avatar
0 votes
1 answer
429 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://...
user avatar
  • 331
0 votes
1 answer
65 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 ...
user avatar
  • 1
1 vote
0 answers
563 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 ...
user avatar
  • 111
1 vote
1 answer
69 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 ...
user avatar
0 votes
0 answers
345 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 ...
user avatar
1 vote
1 answer
400 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( __( '...
user avatar
  • 111