Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently moved my blog on to my company website and did a 301 redirect for all the content of my blog. However I want to redirect my the base url (www.oldblog.com) of my old blog to my new company blog (www.newblog.com/category/blog)

Currently all the content is mapped 1 to 1 using this htaccess file.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (.*) http://www.newblog.com/$1 [R=301,L]
</ifModule>

How do I map only the root to a different place?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

See mod_alias Redirect directive.

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.