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: http://www.example.com/_new/ I did this so that the old website continues to function under the main URL: http://www.example.com 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: http://www.NathanTornquist.com/wordpress When I go to that URL I have this URL show up in the address bar: http://www.NathanTornquist.com/NathanTornquist/wordpress but when I hit the home button at any time […]

How to show the homepage on a different url, like site.com/blog instead of site.com?

I have WordPress installed in my root directory, so if you go to site.com 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 site.com/blog/, 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 http://website.com/ from http://website.com/wordpress 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” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>> <head profile=”http://gmpg.org/xfn/11″> <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: http://www.xxxxxxx.com/search/Used/MT/Billings/?s=BMW&z=59105&r=150&m=150000&pmin=1000&pmax=30000&submit=Refine […]