treehouse : what would you like to learn today?
Web Design Web Development iOS Development

WP permalink postname

  • I set up my HTML code to go to /about/ and went into admin and changed my permalink to %postname% and it is still not working. I have a page I made named About so it is there. When I click on the link it does go to www.linkcreativedesign.com/About/ but says page not available.

    I dunno if it has to do with changing the .htaccess file but in the tutorial Chris says it should do it automatically. Im on the latest version of WP.

    any ideas?
  • Ok so I went into my WebShell, downloaded my .htaccess file, added this

    (RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Which wordpress told me it didnt have access to automatically update and to ad this. I also have checked to allow groups and others to have writting access to it once I re uploaded the .htaccess file and its still not working.

    There is a difference though.. the background of my site stays.. it just shows 404 not found in the browswer tab.. and of course does not show the "about" page content.
  • Well nevermind I got it. Thanks yo! ;)

    I would like feedback on how I fixed it as it is different than what Chris put..

    for the permalink I put /%pagename% instead of /%postname% Chris Says to put postname...

    really none of the WP-instructions mentions /%pagename% as an option, I just kinda took a shot in the dark, along with adding the code it told me to ad to the htaccess file and all fixed..

    Thoughts?
  • "LinCSS25" said:
    Well nevermind I got it. Thanks yo! ;)

    I would like feedback on how I fixed it as it is different than what Chris put..

    for the permalink I put /%pagename% instead of /%postname% Chris Says to put postname...

    really none of the WP-instructions mentions /%pagename% as an option, I just kinda took a shot in the dark, along with adding the code it told me to ad to the htaccess file and all fixed..

    Thoughts?


    it all depends if you write a page or post, they are different
  • well I did write a page. and I thought that is what Chris does in the tutorial. put he pust /%postname%
  • "LinCSS25" said:
    well I did write a page. and I thought that is what Chris does in the tutorial. put he pust /%postname%


    just remember that wordpress has the ability to write pages and posts, if i remember correctly, the tut that chris done was for showing wordpress can be used as a cms.
  • exactly, thats why I was making pages, to learn how to use wordpress as a CMS for my website, WITH a blog. Thats why I'm curious as to why he showed doing %postname% for the permalink when he made pages too. oh well it works whatever..
  • Hey, in my case %postname% works perfectly fine.. though I was unable to edit the .htaccess file at first.. but after adding that mod rewrite code [which I found here :P], its working fine now.. :) Thanks..
  • You can use %postname% as your permalink and it should work for both posts and pages.

    You mention your page being named About, but your link is looking for about. Notice the capital letter vs lowercase letter.

    Go to your About page in Edit Pages and see if the url matches.