Jeremi Liwanag
Jeremi Liwanag

Reputation: 964

Blog Page Redirects To Homepage

My Blog Page keeps redirecting to my Static Homepage.

  1. Front Page = Home
  2. Post Page = Blog
  3. Permalink: Post Name (ticked)
  4. Blog Page = Default Template

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

Upvotes: 0

Views: 3402

Answers (2)

Jeremi Liwanag
Jeremi Liwanag

Reputation: 964

renamed my php file from home.php to homepage.php, i didn't know that the word "home" is a reserved word for template files.. that's why its redirecting to the homepage.

Upvotes: 2

danyo
danyo

Reputation: 5846

Have you checked your permalink, and also reading settings in the admin? I have had quite a few problems in the past with this myself. Double check which page you have setup as your "Front Page", and also your "Posts Page"

It could be your blog page is set as you "Front Page"

Upvotes: 0

Related Questions