WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] .htaccess trouble, can’t seem to get my domain to go directly to the blog

[Resolved] .htaccess trouble, can’t seem to get my domain to go directly to the blog

  • Ok, so back at 2.0.* I started my blog with some friends. I had a nice little .htaccess that would automatically redirect the .com to .com/blog/. It looks like this:

    RewriteEngine on
    RewriteRule ^$ /blog [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /blog/$1 [L,QSA]

    But when I try to use this with my new 2.5.1 WP install I get “500” errors.

    The .htaccess that WP says I should have is this:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    
    # END WordPress

    Which is all well and good since it allows for the “pretty” permalinks … but how do it get it to do what the old one did? It seems to me that the old one should work just fine.

    I’m new to the whole webmaster business so some of this is a bit greek to me. Thanks for your time

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] .htaccess trouble, can’t seem to get my domain to go directly to the blog’ is closed to new replies.