Wordpress permalink help?

Discussion in 'WordPress' started by Valiant, May 11, 2009.

  1. #1
    Hi,

    Hopefully someone can help?

    I'm using the custom permalink: /%postname%

    All works fine but when clicking on an article where its: http://www.mysite.comj/article-name-goes-here , I get a 404??

    Any ideas??

    I can PM you the site (I don't want Google seeing it ehre :p)

    If you could help it would be awsome!!!

    Jake.
     
    Valiant, May 11, 2009 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Wordpress does not recommend using just postname. This is what they say on it:
    I'd go with /%category%/%postname%/
     
    Cash Nebula, May 11, 2009 IP
  3. sylv3rblade

    sylv3rblade Peon

    Messages:
    292
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This is happening because although you've saved the setting on wordpress, it has to reflect the changes on your .htacess file which, by default is not writable by wordpress. Change your site's .htacess file permissions to 666, apply the changes again then restore the original permissions on the .htacess.
     
    sylv3rblade, May 11, 2009 IP
  4. aniroy1986

    aniroy1986 Well-Known Member

    Messages:
    391
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    130
    #4
    I think it's writable by Wordpress by default if you have the necessary permission on your server;)
    Check the permission & make it as sylv3rblade said. If you can't have access to .htaccess on your server, then you can use Pretty Permalinks. It isn't pretty practically, but more seo-optimised:)
     
    aniroy1986, May 11, 2009 IP
  5. dcristo

    dcristo Illustrious Member

    Messages:
    19,797
    Likes Received:
    1,201
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    5
    #5
    I never knew that. Although I have never had an issue with it.
     
    dcristo, May 11, 2009 IP
  6. dpwebmasterseo

    dpwebmasterseo Banned

    Messages:
    242
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    it is because you have to add "/" after postname%
     
    dpwebmasterseo, May 11, 2009 IP
  7. saisubhashguttina

    saisubhashguttina Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    yes it is because "/"
     
    saisubhashguttina, May 12, 2009 IP
  8. logout

    logout Peon

    Messages:
    80
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Use like this ......./%postname% /
     
    logout, May 12, 2009 IP
  9. Valiant

    Valiant Peon

    Messages:
    284
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It was the missing / at the end, thanks guys!
     
    Valiant, May 12, 2009 IP
  10. UnFunded

    UnFunded Peon

    Messages:
    295
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #10
    For future reference, though this was just the unnecessary slash in the field, I felt it worth it to comment on sylv3rblade's suggestion just in case anyone turns up here from the search engine. If you come across this error, it should have also outputted some code and gave a tip about the file being writable. This code is your typical fail-safe .htaccess file once you go to set that setting - if you don't have this, you need to upload it. If you didn't have the problem, you already have rewrites. .htaccess is simple to create if you are using windows but you need to use save-as to save it (can't rename xx.filetype to .????) because it might say you need a prefix before an extension. After you've pasted the bit of code wordpress gave you and saved a .htaccess, just upload it.

    This was just for the random dude who finds this any time between now and the end of the internet and is scratching his head saying "mine doesn't have a slash"
     
    UnFunded, May 12, 2009 IP
  11. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #11
    paste ur permalink code in .htaccess file change permission 666 of .htaccess file.

    if does not work pm me ur site url
     
    Jalpari, May 13, 2009 IP
  12. bobchrist

    bobchrist Active Member

    Messages:
    4,102
    Likes Received:
    95
    Best Answers:
    0
    Trophy Points:
    88
    #12
    Try out using this /index.php/%postname%/
     
    bobchrist, May 15, 2009 IP