[resolved] .htaccess trouble, can't seem to get my domain to go directly to the blog (3 posts)

  1. geekosupremo
    Posted 8 years ago #

    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]
    # 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

  2. whooami
    Posted 8 years ago #

    you need to ignore what you did in 2.0.11 and make sure you are doing this:


  3. geekosupremo
    Posted 8 years ago #

    That worked great! Thank you! Mas apologies for my noobishness.

Topic Closed

This topic has been closed to new replies.

About this Topic