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
  • Using .htaccess to ALLOW directory browsing By default the apache install for most sites now restricts directory browsing. It's a good idea, you don't want just ANYTHING to be browsable on a web server, but there comes a time that it makes life easier for a directory (or tree of directories) to be browsable without having......
  • Google search engine crawling experiment Recently I've had an experiment with the way Google crawls a site. I had a client site that had not been spidered in spite of being submitted to Google a good while back. I looked at the site and saw nothing amiss. There was plenty of text on the page......
  • Qemu Windows XP install Well, I alluded yesterday to a struggle with installing Windows XP under Qemu. Here are some details on the long and (still winding) road. At this point I have a working XP install running under Qemu but, I've run out of disk space (2G) and need more space before I......
Blog Traffic Exchange Related Websites
  • SEO Principles for WordPress Blogs WordPress is a relatively SEO friendly blogging tool to begin with. It offers a linking structure that makes it relatively easy for spiders to crawl your pages, and the code contains very little validation errors if any at all. However, there are a few additional steps that you can follow......
  • 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,......
  • 9 Great Tools to Make Corporate Blogging Easier Here are nine ways to make corporate blogging even easier for you. Writing your blog should be enjoyable and fun, rather than just a task you have no interest in doing. These some really great tools should help make blogging more fun and enjoyable for you rather than a chore......
PDF24    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