Articles of home url

Cannot access WordPress website from external IP while internally it is working properly

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 site I just hit the IP address of the server (internal). I want to access the site from outside […]

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: I did this so that the old website continues to function under the main URL: I now have to make my website live under this URL. To this end, I backed […]

Rewrite Rules problem when rule includes homepage slug

I have page Example (ID=443, slug=example) that is configured, through Dashboard->Settings->Reading, as the home page of my WP site. I also have the following rewrite rule configured: [(example)/(view-section)] => index.php?pagename=$matches[1]&foo=1&bar=2 I have a shortcode in the Example page that should generate content based on presence and value of fooand barquery vars. The problem is the […]

Correct way of getting the current page uri

Can someone please tell me how to get the correct url of the page the user is on? I need to grab the url and construct a new link. Here is the issue that I am having. For example, let’s say I am on http://localhost/myplugin/samplepage/?some_var=1&some_var=2 home_url() is http://localhost/myplugin $_SERVER[‘REQUEST_URI] is /myplugin/samplepage/?some_var=1&some_var=2 As you can see, […]

Extra Text in URL

I’m redesigning my website. The blog posts and everything were fairly easy to move to the new wordpress install. The URL of the test site is this: When I go to that URL I have this URL show up in the address bar: but when I hit the home button at any time […]

How to show the homepage on a different url, like instead of

I have WordPress installed in my root directory, so if you go to you see the list of recent posts. What I want to do is to have the homepage show a static page instead showing recent news etc (I’ve figured out how to do this), however if someone goes to, I want […]

Accidentally messed up URLs

So I installed WordPress on my Apache server and I changed the URL in the WordPress Admin Control Panel to from and now it’s taking me to my old index.html I made before I installed WordPress, even though I moved all my old stuff to a backup folder. Now I cannot get back […]

Form action unfamiliar

I am refactoring some code in the header.php: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”> <html xmlns=”” <?php language_attributes(); ?>> <head profile=”″> <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title> […]

hijacking home_url for root relative paths

I’d been having trouble with the full domain name being written into the path of links and assets. Basically localhost:XXXX works fine, until I try to reach my site from a Virtual Box install of XP or in my local network, where the domain changes to computername.local:XXXX I managed to solve this problem with a […]

Using wp_redirect and .htaccess to re-route searches (and pass along the remaining GET vars)

I’m trying to use wp_redirect() to redirect searches to a format that I have established in .htaccess. Unfortunately, I’m running into some problems doing this. I need to redirect search to a series of folders, and then append the remaining parameters to then end of the URL, the end result would look like this: […]