Swimminginthought

A place for all things technical and my mind..

Menu
  • About Me / Hire Me
Menu

WordPress older posts or newer posts link not working [Solved]

Posted on March 19, 2012 by Percy Kwong

So you’ve installed WordPress and all of a sudden, when you clicked on older posts, it doesn’t work.  This seems to be a problem that plagues many people and the situation hasn’t been solved.

The reality is it’s a misconfiguration in your apache vhost (if you’re using a vhost) or just the apache configuration.  So, I’m going to solve this problem with one little line.  Sound interested?

Here’s how you really solve the problem.

Assuming you’re using CentOS, just go to /etc/httpd/conf.d

Open up your vhost file for the appropriate domain and just copy and paste (of course modify your vhost settings to their appropriate settings and restart apache.

Do yourself a favor and do the one thing that nobody ever does.  Don’t wipe out your existing config file, but instead, create a directory called ‘off’  (mkdir off) and move the conf file inside that directory.

Now just create a new conf file and put the following in it.

<VirtualHost 64.5.53.101:80>

<VirtualHost your.server.ip.address:port number>

DocumentRoot “[absolute path to your Document Root] example: /var/www/mywebsitefiles”
ServerName Your.websitename.domain
ServerAlias Any.Other.websites.domain
ErrorLog logs/www.swimminginthought.com-error_log
CustomLog logs/www.swimminginthought.com-access_log combined

DirectoryIndex index.html index.php index.html.var

<Directory “[absolute path to your Document Root] “>
Options All
AllowOverride All
Order Deny,Allow
Deny from all
Allow from all

</Directory>
</VirtualHost>

 

If you notice the line that starts with DirectoryIndex, it basically tells the vhost to use index.php as an index document.  This is almost always what causes the problem.  Just save the file and of course restart your web server.

“service httpd restart”

It should all work perfectly now!

Cheers!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Kubernetes install gotcha on CentOS-7.x
  • Infrastructure as Code using AWS Cloudformation
  • Does SSL matter? It does and it’s not just web encryption.
  • Apache can’t serve the .well-known directory
  • Cloudy with a chance of Meatballs
  • Resurrection of the Blog
  • Encryption type Matters with Deep Packet Inspection – solved
  • Completely off topic.. Just a personal note.

Recent Posts

  • Kubernetes install gotcha on CentOS-7.x
  • Infrastructure as Code using AWS Cloudformation
  • Does SSL matter? It does and it’s not just web encryption.
  • Apache can’t serve the .well-known directory
  • Cloudy with a chance of Meatballs

Recent Comments

  • Percy Kwong on Boosting Octane Yourself. I did the research, made it, and proved it.
  • Nick Doelman on Boosting Octane Yourself. I did the research, made it, and proved it.
  • Percy Kwong on International Text solutions – A solution
  • Muzahid Ul Islam on The Browser Wars; Which One is Best?
  • Muzahid Ul Islam on International Text solutions – A solution

Archives

  • September 2019
  • August 2019
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • August 2011
  • June 2011
  • March 2011
  • February 2011
  • November 2010
  • October 2010
  • September 2010
  • July 2010
  • January 2010
  • November 2009
  • October 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008

Categories

  • Activism
  • All
  • Amazon S3
  • Announcements
  • Apache
  • Apple
  • Applications
  • Automation
  • AWS
  • Azure
  • Backups
  • Blogging
  • Books
  • Bootcamp
  • CentOS – RHEL
  • Cloud Computing
  • Cloudformation
  • Consulting Advice
  • Craigslist
  • Databases
  • Deep Packet Inspection
  • Doing the right thing
  • e-Book Readers
  • E-Mail
  • EC2
  • energy-efficiency
  • environment
  • Expose
  • firewalls
  • General Observations
  • Hardware
  • Hope
  • Hosting
  • IaC
  • Important things to do in life
  • Infrastructure as Code
  • Kubernetes
  • Linux
  • Media and Encoding
  • Miscellany
  • Mobile Phones
  • MySql
  • Networking
  • Performance
  • Personal
  • pfsense
  • Politics
  • Privacy
  • Redundancy
  • Routers
  • security
  • SPAM
  • Tech that doesn't work like it should
  • Tips and Tricks
  • Tools that work
  • Tout
  • Video
  • Virtual Computing
  • VOIP-Voice Over IP
  • VPN
  • Web Browsers
  • Web Hosting
  • Websites
  • Windows
  • Wordpress

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2026 Swimminginthought | Built using WordPress and Responsive Blogily theme by Superb