Universal permalinks 404 failure (-NOT- due to my .htaccess?)
-
Hi guys
I’ve spent a considerable amount of time trying to get any form of permalink working on WP 4.7.2 – my .htaccess in the same folder as my WP install’s index.php:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>My plugins:
—
AddToAny Share Buttons
Akismet
Breadcrumb NavXT
Contact Form 7
Custom Icons by Stylemixthemes
Disable Comments
Duplicate Post
Easy Table
Force Regenerate Thumbnails
Gravity Forms
MailChimp for WordPress
Page Links To
Recent Tweets Widget
Scalable Vector Graphics (SVG)
Slider Revolution
STM Importer
STM Post Type
TinyMCE Advanced
Velvet Blues Update URLs
WordPress Importer
WP Google Map Plugin
WP Google Map Pro
WPBakery Visual Composer
Yoast SEO
—All the plugins (according to WP’s plugin page) are up to date and current versions as of 2017-02-15.
AllowOverride is set to ALL in my httpd.conf, and I’ve confirmed that the .htaccess is being parsed by Apache – putting something meaningless like “abc” into it crashes the server, so the Apache server instance on my box IS reading and parsing .htaccess as far as I can determine. I can put in rewrite rules that are applied consistently to test URLs I input into my web-browser.
My PHP version is 5.6.29 on Centos 7 (fully updated via YUM as of 2016-02-15) on Apache 2.4.6.
This is a WP install that has been running the past week with no problems, everything works fine, EXCEPT for any form of permalink.
THE PROBLEM:
Currently I have plain links activated (e. g. Settings->Permalinks is set on Plain) – everything works. I can go to the site, browse any page, all plugins work, and most functionality works.
I can edit posts, create new ones, etc. etc.
Now I want to start using Permalinks – however, the moment I select any of the other permalink options on the Settings->Permalinks page, the entire site stops working an I get 404 pages back no matter what page I try to access. Even the root landing page just gives a 404 error.
The moment I return to plain links in Settings->Permalinks, all site feautures and functions start working fine once again.
Things tried so far:
– I have over and over and over insured that my .htaccess is writable, and being written by WP.
– I can delete the .htaccess and see WordPress create it from scratch for me if I select a different permalink option.
– I have modified the .htaccess WP creates with invalid rules, and it crashes the server reliably, indicating that the .htaccess WP creates IS being parsed and acted upon by my Apache instance.I’ve googled for about seven hours straight now, and the only summation of each of about 90 posts on the subject I pursued in various forums and blogs is always invariably that you either do not have a .htaccess, or it is not being read because AllowOverride is not set to “ALL” in httpd.conf, or WP cannot create it because your permissions are wrong on your WP directory.
I’m reasonably sure the above is not my issue as I can crash my server by putting crap into .htaccess, indicating that the server does have AllowOverride set on my WP folder and it is reading my .htaccess. Also, I can delete the .htaccess and choose a permalink option in Settings->Permalinks, and I can ls -l in the WP folder and actually -see- WP create the .htaccess file it wants to use.
I’ve also then chmod’ed this .httaccess file WP creates when I choose a permalink type to rwxrwxrwx (# chmod a+rwx .httaccess) to ensure everybody and anybody can read the file – even though Apache already DOES read, and act, on it) but no cigar.
It seems WP 4.7.2 permalink functionality itself isn’t working for some reason, and that my Apache, PHP and Centos installs themselves are fine…
I’ve also disabled all plugins and tried permalinks, same problem – the moment anything besides “plain” links is selected, the entire site dies (the admin backend still works though, allowing me to reset back to “plain” – and only THEN will the frontend again start working.)
Where can I even begin to look?
The topic ‘Universal permalinks 404 failure (-NOT- due to my .htaccess?)’ is closed to new replies.