need htaccess 301 redirect for site in directory

Discussion in 'Apache' started by dragonden, Jul 12, 2007.

  1. #1
    Hello!

    When I set up my domain a year ago I ended up adding several blogs to it. Instead of creating subdomains I put them in /blog directories.

    Until recently they were accessable will www or non www urls, but I started using a wordpress plugin for them to make them non www. I'm currently having CPU resource overuse issues at my webhost and I'm wondering if the plugin that I'm using might be causing some problems.

    So ... I'd like to be able to find an htaccess mod rewrite code that will make my /blog urls all be non-www.

    for example if I want www.mydomain.com/blog/ to always be mydomain.com/blog/

    Also I know there's some part of the code that handles whether there's a trailing slash or not .. I want that part to work both ways.

    Can anyone help? I've been searching for a rewrite code that would work properly for a few months without success. That's why I ended up using the plugin.

    Thanks
     
    dragonden, Jul 12, 2007 IP
  2. dragonden

    dragonden Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone know how to do this? or where I might look for more info on this?
     
    dragonden, Jul 14, 2007 IP