• I’m hoping somebody can help me….

    I’m developing a blog for a client and in my dev environment I had everything set up with pretty permalinks, using a static front page and another page for the posts page. Because of some issues with the client’s server dealing with mod_rewrite, I am now switching to the default setting in permalinks. My is_front_page() function seems to be working still, but my is_home() is not! I have no idea how to troubleshoot this. Anybody know what’s going on? I’ve tried getting the home page by name using is_page(‘Blog’), tried using ID number is_page(’34’) but nothing works.

    thanks

Viewing 1 replies (of 1 total)
  • Hi,

    As you have changed the permalinks your old posts can not work..to resolve it you need to add this code in htaccess file:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    [spam link moderated]

    Thanks,

    Shane G.

Viewing 1 replies (of 1 total)
  • The topic ‘changed permalinks to ‘Default’ and now is_home() not working’ is closed to new replies.