Permalinks Change on my blog

Discussion in 'WordPress' started by NsaneNoob, Oct 4, 2007.

  1. #1
    My www.nsaneblog.com has the /%post_id%/ as permalink structure. I want to make it better for search engines such as /%categories%/%postname%/.

    I do no want to lose the pages and I heard about the 301 redirection. Can anyone please help me with this and how to do it? Most plugins are useful but do no provide good info.
     
    NsaneNoob, Oct 4, 2007 IP
  2. hughlh

    hughlh Peon

    Messages:
    67
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This plugin will help if you are on Wordpress.
     
    hughlh, Oct 4, 2007 IP
  3. machinecontroller

    machinecontroller Peon

    Messages:
    269
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You don't need a plugin just edit your .htaccess.
     
    machinecontroller, Oct 4, 2007 IP
  4. gr8liverpoolfan

    gr8liverpoolfan Notable Member

    Messages:
    6,719
    Likes Received:
    538
    Best Answers:
    0
    Trophy Points:
    285
    #4
    To effect the change in URL, you need to edit your htaccess manually, or allow wordpress to do it ( if your files were writable)

    The plugin hugh has suggested is a plugin which will redirect all queries to your old url to the new url. Another plugin which does this job http://fucoder.com/code/permalink-redirect/
     
    gr8liverpoolfan, Oct 4, 2007 IP
  5. sat123

    sat123 Banned

    Messages:
    1,600
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #5
    make .htaccess chmoded to 644 and change desired setting in wp options permalinks....
     
    sat123, Oct 5, 2007 IP
  6. Ghalt

    Ghalt Peon

    Messages:
    182
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    .htaccess is already chmodded to 644

    I changed my permalinks and now I'm getting a 404 error. for pages that used to work.

    any thoughts?
     
    Ghalt, Dec 11, 2007 IP
  7. markov

    markov Peon

    Messages:
    3,010
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Use a permalink redirect plugin and wait for some time. Google will recognize it lately.
     
    markov, Dec 12, 2007 IP
  8. Ghalt

    Ghalt Peon

    Messages:
    182
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I figured out that I needed to chmod the .htaccess file to 666 before using the Permalink functionality to change it. Once I switched it in the Admin panel, it worked, and I chmoded the .htaccess back to 644.

    Hopefully that might help someone else. :)
     
    Ghalt, Dec 12, 2007 IP
  9. Ghalt

    Ghalt Peon

    Messages:
    182
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Crud...I broke it again. :)

    I had everything working exactly the way I wanted it. Permalinks were looking good. But I had built my WordPress in a subdirectory to stage it and get it ready to transition to the main domain.

    I say that to indicate that I did have Permalinks working at one point, which tells me that the .htaccess was setup and able to be modified and that my server was able to use it properly for the rewrite of the urls.

    So last night I moved the blog from the subdirectory to the main directory.

    I followed the instructions at WordPress. (change the URLs in the admin panel, then move the files, then do the Permalinks).

    Everything broke. Uh-oh. No pages were recognized. So I adjusted the Permalink to the default (ugly numbers). Everything works.

    But when I try to change it to /%postname%/, I get 404 errors again.

    I've chmodded the .htaccess to 666 so the changes would take. I even removed the .htaccess and made the changes (which makes WordPress create a .htaccess again).

    No luck.

    Any thoughts?

    Thanks!

    OK...strange. I wonder if it was my server acting up. To fix it I set Permalinks to default. Then removed the .htaccess. Then changed the Permalinks to the custom that I wanted, and everything worked. Sometimes I think I run the computer, other times I think it runs me.
     
    Ghalt, Dec 13, 2007 IP