Wordpress stuff - My URL's don't show up correctlty (.htaccess help)

Discussion in 'WordPress' started by kiplarson, Apr 4, 2007.

  1. #1
    I'm following Jim Wesetergren's SEO for Wordpress stuff and his url cannonization fix foundhere

    I also already set up my blog to use /%postname%/ and I did the steps for the url cannonization, but my blog posts are not showing up correctly.

    They show up like this:

    http://www.chrisguthrie.net/http:/www.chrisguthrie.net/test/

    So it shows my url twice, and my .htaccess file looks like this (so I assume it's something to do with my .htaccess messing up). Does anyone know why it messes up?

    
    Options +Indexes
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^chrisguthrie\.net
    RewriteRule ^(.*)$ http://www.chrisguthrie.net/$1 [R=permanent,L]    
    
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ http://www.chrisguthrie.net/$1/ [L,R=301]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    PHP:
     
    kiplarson, Apr 4, 2007 IP
  2. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did it have this problem before (when you first installed and tried it out?)

    Also, what entry is in your Options >> Permalinks area? For instance, mine is:
    /%category%/%postname%/

    I had a major problem when I put the wrong variable in here, once.
     
    Pixelrage, Apr 4, 2007 IP
  3. kiplarson

    kiplarson Peon

    Messages:
    449
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My permalinks is just:

    /%postname%/

    I didn't bother with category and I didn't have a problem until I edited my .htaccess with the url cannonization changes.
     
    kiplarson, Apr 4, 2007 IP
  4. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the first thing that comes to mind is "RewriteEngine on" - isn't that a server admin feature? I don't know if that is turned on or off by default.
     
    Pixelrage, Apr 4, 2007 IP
  5. kiplarson

    kiplarson Peon

    Messages:
    449
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, I think that is so that my url will go to www all the time.

    I tried removing the RewriteEngine on in the second portion of the .htaccess file, but I saw no change.
     
    kiplarson, Apr 4, 2007 IP