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.

There is a site at http://theprimarkonlineshop.com that I want to be redirected to http://theprimarkonlineshop.com/category/blog when a user enters the site. I've tried some stuff like

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} ^/$ [OR]
RewriteCond %{REQUEST_FILENAME} ^$ 
RewriteRule . http://theprimarkonlineshop.com/category/blog/ [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
add comment

2 Answers 2

up vote 1 down vote accepted

Here is how I'd do it:

http://wordpress.org/extend/plugins/redirect/

  1. Install above plugin
  2. Create a page
  3. Add custom field: redirect of a value of http://theprimarkonlineshop.com/category/blog
  4. Set page you have created to the sites homepage.
share|improve this answer
add comment

you can also try wp_redirect:

<?php wp_redirect( 'http://theprimarkonlineshop.com/category/blog/', 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
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.