WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess 301 redirect for two separate blogs (1 post)

  1. gonzolager
    Member
    Posted 3 years ago #

    Hello...

    I have two domain names with my host (Brinkster). I decided I wanted to keep two separate blogs, each with their own domain name. My general blog would be at bourbonasylum.com/blog and a new blog I'm wanting to start on Doctor Who would be at agnosticwhovian.com. I tried to set up an .htaccess file to do a 301 redirect. As far as I can see, it looks correct

    #Turns the rewrite engine on.
    RewriteEngine on

    #Fix missing trailing slash character on folders.
    RewriteRule ^([^.?]+[^.?/])$ $1/ [R,L]

    #www.domain.com and domain.com will map to the folder {root}/folder1/
    RewriteCond %{HTTP:Host} ^(?:www\.)?agnosticwhovian\.com$
    RewriteRule (.*) /agnosticwhovian/$1 [NC,L,NS]

    #www.otherdomain.com and otherdomain.com will map to the folder {root}/folder2/
    RewriteCond %{HTTP:Host} ^(?:www\.)?bourbonasylum\.com$
    RewriteRule (.*) /bourbonasylum/$1 [NC,L,NS]

    #subdomain.domain.com will map to the folder {root}/folder3/
    RewriteCond %{HTTP:Host} ^(?:subdomain\.domain\.com)?$
    RewriteRule (.*) /folder3/$1 [NC,L,NS]

    However, now both of my blogs are gone. I get a "The system cannot find the file specified"/"cannot find server" error for both pages. When I talked with Brinkster's support, they said I would have to change something in the WordPress files but since I don't have a strong background in coding, I shouldn't attempt this as I could irretrievably damage the files.

    Is there anyone who might be able to help?

Topic Closed

This topic has been closed to new replies.

About this Topic