Support » Fixing WordPress » Writing a URL redirect for my blog

  • I have a wordpress site with a number of sub domains set up e.g

    my main site is and I also have
    and At the moment all the subdomains just point to my main site.

    I have a category set up on my blog that contains articles purely written by myself and they are currently accessed from the category URL

    What I want to do is add a rewrite rule to my htacess file so that points to and the user believes they are on a different sub domain even though its just a pointer to a category on my site.

    I can do a Redirect rule at the moment with

    RewriteCond %{HTTP_HOST} ^(blog\.)?mysite\.com
    RewriteRule ^(blog\.)?mysite\.com/?$ /myarticles/ [NC,L]


    RewriteCond %{HTTP_HOST} ^(blog\.)?mysite\.com
    RewriteRule ^(blog\.)?mysite\.com/?$ /myarticles/ [R=permanent,L,NC]

    but they just point to my main site with that URL in the address bar


    RewriteCond %{HTTP_HOST} ^(blog\.)?mysite\.com
    RewriteRule ^(.*)$ /myarticles/ [L,NC]

    gives a 500 status code redirect loop error


    RewriteCond %{HTTP_HOST} ^(blog\.)?mysite\.com
    RewriteRule ^(.*)$ [R=permanent,L,NC]

    Takes me to the right page but shows http://www.mysite/myarticles in the address bar and not which is what I want.

    I dont want to set up separate folders on my webserver with virtual domains etc if possible as the content is all going to run off the same database and wordpress folder.

    Can anyone help me with the htacess rewrite rules that I will need to mask my category URL with my blog subdomain. I want to be able to use as my links.

    Any help would be much appreciated.,


Viewing 2 replies - 1 through 2 (of 2 total)
  • Log into your hosting control panel. There is usually a GUI-driven way to set these things up there.

    Sorry what kind of application am I looking for?

    I am capable of writing my own htaccess rules so I would have thought editing the file would have done this but obviously not.

    Could you be more specific to the sort of app you are talking about.

    I am on a LINUX box with APACHE and use VirtualMin to manage my server.

    Thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Writing a URL redirect for my blog’ is closed to new replies.