Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

There is a site at that I want to be redirected to when a user enters the site. I've tried some stuff like

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} ^/$ [OR]
RewriteCond %{REQUEST_FILENAME} ^$ 
RewriteRule . [R=301,L]

but it doesn't work.

Also there are some redirections that were put into .htaccess by WordPress

RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

I guess they should remain as is?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Here is how I'd do it:

  1. Install above plugin
  2. Create a page
  3. Add custom field: redirect of a value of
  4. Set page you have created to the sites homepage.
share|improve this answer

you can also try wp_redirect:

<?php wp_redirect( '', 301 ); exit; ?>

put it in a custom template and set it as your homepage.php file or you can do this from your settings also.

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.