Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a static default wordpress home page. As you know if you have a homepage on wordpress you can not set a permalink through the admin options, you can only set permalinks for non homepages. Does anyone know of a way that I can set a permalink for my homepage? So that when I visit my site at example.com, it automatically turns to example.com/examplelink when the site loads?

Thank you!!

share|improve this question

1 Answer 1

I would set another page as the home page, add a custom template for the home page and put this in it:

<?php wp_redirect( get_permalink( $id ), 301 ); exit; ?>
share|improve this answer
    
YOU ARE AMAZING THANK YOU SO MUCH –  user49894 Apr 3 at 22:00
    
If it works for you please accept the answer –  kraftner Apr 4 at 13:52

Your Answer

 
discard

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.