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

Wordpress - problem with permalinks

  • Hi guys,

    I'm having a big problem with the permalinks on my website.

    Basically, when i go to the first page (for example www.mywebsite.com/about-us/) it works fine, but then i go to another page (let's say www.mywebsite.com/contact/) and the url is correctly changed but the displayed page is the first one. I have to click many times to really change to the correct content.

    I tried to remove permalinks, and it works fine, i put them again and problem persists, i've changed my .htaccess manually with the wordpress code (http://digwp.com/2011/01/new-htaccess-permalink-rules/) and still having the problem.

    Any solution?
  • The code i'm using right now:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
  • More info:

    When i have 644 permissions on my .htaccess file wordpress say's he can't write on it. If i change to 777 and then save changes on permalinks section that message disappears.
  • What are you using for your permalink structure?
  • I'm currently using /%category%/%postname%/.

    I think i solve the problem but in a strange way. I installed the W3 Total Cache plugin and the problem disappeared. Can this be some hosting problem?