Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 523265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:26:23+00:00 2026-05-13T08:26:23+00:00

I use WordPress as a CMS, where the front page is static for the

  • 0

I use WordPress as a CMS, where the front page is static for the most part and the actual blog part of it has been moved to a new page that uses a custom page template that basically acts as if it were the front page on a standard WordPress install. It works pretty well but it still has a few bugs. The main one is that pagination will no longer work, WordPress won’t recognize the page URLs that are generated.

So far I’ve configured WordPress to display the correct URLs (domain.com/blog/page/2 instead of domain.com/page/2), and I’ve also gotten it to display a specific page of blog posts via a URL parameter (domain.com/blog?page=N). So basically I’m almost done, I just need to map domain.com/blog/page/N to domain.com/blog?page=N. This would be an easy task if it were just a plain old static site, but WordPress has it’s own URL handling that I believe may be interfering with it – not to mention “blog” isn’t an actual URL so it needs to go through the rules twice, once for mapping the blog pagination, and once again so WordPress can handle the generated URL as it would regularly… I think I may need to use the N or NS flags for the rewrite rules but I just don’t know how I would use them

The rule I’ve come up with:

RewriteRule ^/blog/page/([0-9]+)$ /blog?page=$1

Default WordPress .htaccess:

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

As per some suggestions, I’ve gotten this for the .htaccess, but it still doesn’t recognize it.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule /blog/page/([0-9]+)$ /blog?page=$1 [N,QSA]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

And I’m fairly certain changing the page via the URL parameter does work – I change the number in the URL manually and it does in fact change the page. The web server is LiteSpeed, if that makes any difference

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:26:23+00:00Added an answer on May 13, 2026 at 8:26 am

    I figured it out eventually (a few days after — I just forgot about this until now). First, make sure you have WordPress updated. At the time I was using 2.5 or 2.6 but for some reason it didn’t work until I updated.

    First, create a custom template. You will use this template for your homepage so customize it and all that jazz. Leave the “Main Index” (index.php) template alone — that template will be used for the blog index page so it needs the WP loop to list your blog posts.

    Now, go and create two pages. One for your home page (let’s call it “home”) and another for your blog (let’s call it “blog”). On the “home” page, set the the template to the homepage template you created previously. On the blog page, leave it on the default template — it will use the “Main Index” template by default.

    Now, go into your “Reading” settings and change it to “A static page.” For the front page, select the “home” page you created previously. For the posts page, select the “blog” page you created.

    That should be it. I had actually tried this beforehand but it did not work so I tried using redirect rules, to no avail. I ended up being an out of date WP install. If you have a sitemap mod installed, make sure you exclude the “home” page so the spiders don’t pick up a duplicate of your home page at example.com/home. You can also put it in your robots.txt to be sure.

    Once you’re done, the root (example.com/) of your domain (assuming you have WP installed there) will point to your “home” page. Your blog page (example.com/blog) will list your posts. Pagination will work as expected (example.com/blog/page/2 etc.).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 390k
  • Answers 390k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You could leverage ArrayObject (provided you're using PHP 5.3) to… May 15, 2026 at 1:12 am
  • Editorial Team
    Editorial Team added an answer BizzySpinner 2 – A WPF Spinning Busy State Indicator (with… May 15, 2026 at 1:12 am
  • Editorial Team
    Editorial Team added an answer The only way to be sure is to do a… May 15, 2026 at 1:12 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.