WordPress Fancy Permalinks not working Giving 404 error



I spent the better part of a Friday night sorting this out. I had just launched 4 new wordpress blogs that were secondary installs on each server. (I use a VPS and /home/domain/www/ was the primary wordpress install – the secondary installs existed at /home/domain/www/secondsite ) . The problem was that I switched on the fancy permalinks in the control panel of wordpress and after that nothing worked but the main page. Setting things back to the default I could see posts, but not the feed or anything else that relied on mod_rewrite.


Everything else gave the server generated 404 error page. I started by comparing .htaccess files they seemed fine. Then I disabled all the plugins and switched back to the default theme. That didn’t solve things. I disabled and re-enabled the pretty permalinks THAT didn’t work. I started nosing around the VPS’s /etc/httpd/conf/httpd.conf file and made sure mod_rewrite was there (of course it was because the pretty permalinks work on the /home/domain/www install of wordpress…)

So, the fix is to have a directory entry for that folder with AllowOverride ALL to allow the .htaccess to override the default settings. (Or change the default folder settings for apache to allow overrides.) It has to be done in .htaccess

An example of setting the default to allow overrides (allow .htaccess “stuff”) is….

<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>

You can use that template to specifically allow that for your chosen directory and hopefully not have the hair pulling evening that I did.

Related Posts

Blog Traffic Exchange Related Posts
  • Bashpodder linux podcasting client So, juice (formerly known as ipodder) was a bit too gui-only for my tastes, I took a look at bashpodder which is a bash-script based podcast client. Really, this is very much to my liking as it can be scripted to run via cron (or at)... basically, there are three......
  • Virtual Server on Apache to listen on an alternate port In the last few days, I had to set up something a bit unusual with apache. Basically the goal was to have apache listen for connections on two different ports (the standard port 80 and an alternate port 85). The problem was that I wanted different content at each port.......
  • bbpress mod_rewrite Woes I don't know if you're familiar with bbpress, it's the forum cousin of wordpress and can integrate nicely into the wordpress database to allow users to be shared across the two installs. So, on my North Carolina Genealogy site and my South Carolina Genealogy site I have bbpress forums installed.......
Blog Traffic Exchange Related Websites
  • The Important Issue of Adsense Alternatives 2 - Useful Article Adsense Alternatives … Here are the list :Bidvertiser (http://www.bidvertiser.com/)Like AdSense, Bidvertiser displays text ads in your page. But the difference lies in the fact that advertisers bid over your advertising space, ensuring you earn as much revenue as you possibly can. This also means that bids will increase over time,......
  • How To Prove To Yourself (And Your Family) That You Can Make Money Online (Part 3) photo credit: Wolfgang Staudt By now we have covered the basics of what you're going to be doing and how you're going to earn some money online (possibly your first few dollars ever). In this section we're going to talk about how to set up your minisites - assuming......
  • How to Relocate your Wordpress Blog to a New Domain Name Making the decision to move my blog from http://www.courseladder.com to http://www.golfballdriver.com was a big one, and a good one, and it taught me a lot about learning how to relocate your Wordpress blog to a new domain name under the same hosting provider. Course Ladder suited me for a while,......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site