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.

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
add comment

1 Answer

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
add comment

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.