Questions tagged [home-url]
The home-url tag has no usage guidance.
100
questions
0
votes
0
answers
19
views
Having issue in wordpress website homepage showing invalid page and not showing url header section
Saloni here. My issue is with my WordPress website. Actually, I am working on my website, and in that homepage section, it shows an invalid page in the menu section, but when I open my website's URL ...
0
votes
1
answer
297
views
My Website’s Main URL redirects me to an Archive Page
desperately need your help as I’m completely new to this concept called “WordPress”. When I visit www.mydomainname.com, it automatically pulls a page that shows “Archive” right under my Logo and the ...
0
votes
1
answer
375
views
Is there a way to append a trailing slash to get_home_url() and get_permalink( get_option( 'page_for_posts' ) )?
Both get_home_url() and get_permalink( get_option( 'page_for_posts' ) ) don't append a trailing slash at the end. Is there a way to append it similar to home_url( '/' ) other than get_home_url() . '/'?...
0
votes
1
answer
36
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....
0
votes
0
answers
28
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 ...
0
votes
0
answers
361
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. ...
0
votes
1
answer
79
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-...
0
votes
1
answer
113
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() ){
$...
0
votes
1
answer
39
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 ...
0
votes
1
answer
555
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 ...
1
vote
1
answer
77
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?
1
vote
1
answer
859
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 ...
0
votes
1
answer
97
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 ...
0
votes
1
answer
43
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
0
answers
22
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
1
answer
196
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
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 ...
0
votes
0
answers
199
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....
1
vote
0
answers
34
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
1
answer
370
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 ...
1
vote
2
answers
472
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 ...
4
votes
2
answers
3k
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
1
answer
1k
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
1
answer
73
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.
...
2
votes
6
answers
8k
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 "...
1
vote
1
answer
998
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
0
answers
277
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
3
answers
465
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
1
answer
227
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
1
answer
24
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
1
answer
370
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
1
answer
385
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
0
answers
169
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
1
answer
38
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
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 ^...
1
vote
1
answer
81
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
0
answers
458
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
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 ...
-1
votes
2
answers
995
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
1
answer
229
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 ...
4
votes
4
answers
10k
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
1
answer
21
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
1
answer
1k
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
1
answer
136
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
2
answers
16k
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
1
answer
443
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
1
answer
66
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/[email protected]
and fetch value with email like
$wp_query->query['email']
but ...
1
vote
0
answers
757
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
1
answer
88
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
0
answers
351
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 ...