WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to have Wordpress display the full URL string when a specific page listed more than one level deep is set up as the home page under Reading settings?

If I have example.com/parent/child set up as the home page under WP, I want that full string displayed in the browser, not just example.com.

Thank you!

share|improve this question

If you want a nested child page to load when the home page is called, I would set up a separate page as your home page. Create a custom template for that page. Then setup a redirect in the template file for the home page.

You would then setup your placeholder page as the home page from the Settings->Reading menu.

So for example, first I would create a new template file that looks something like this:

// Template Name: Redirector

$redirect = get_bloginfo('url').'http://www.example.com/parent/child/'


I would then create a new page. Name it 'Redirector' or whatever and then select the "Redirector" page template from the template drop down menu, which should be available on the page editor in the far right column.

Then you'll need to select the "Redirector" page as your home page from the Settings->Reading menu. Select "Static Page" and then select "Redirector" as your Front Page option from the drop down menu.

share|improve this answer
Thank you, Brent. Is this SEO friendly? Will there be 301 or 302s in the logs? – user2175705 Oct 1 '13 at 22:40
To be honest, I'm not exactly sure what kind of effect it would have on SEO. I don't think this is being treated as 301 redirect, though I'm a little rusty on the subject. The redirect that Wordpress performs are PHP redirects, not HTACCESS redirects. – Brent Oct 2 '13 at 2:16
TIL - the wp_redirect docs let you specifiy 301 or 302 as optional second argument. – user2175705 Oct 2 '13 at 15:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.