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

How can I get WordPress to preserve my permalink that I have set for the homepage?

I would like the homepage's URL to be www.example.com/homepage-title, not www.example.com. Its permalink is already set to www.example.com/homepage-title, but on navigation to the site I would like it to redirect to www.example.com/homepage-title instead of www.example.com.

share|improve this question

You don’t need mod_rewrite for that, a simple RedirectMatch is enough:

RedirectMatch permanent ^$ /homepage-title

Place the rule above WordPress’ permalink rules.

share|improve this answer

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.