seedsmoke
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks only work for DEFAULTI had the same problem as you. I added /index.php/ in front of the path in permalinks and it started to work.
So now it was on to WHY????
I found out my issue was when you change anything in permalink it modifies your .htaccess file. I would receive no issues with this. My problem was that our security team had us turn off .htaccess files.
AllowOveride none
So it didn’t matter what information was in the .htaccess file it would never use it.
Added the .htaccess file information into the virtualhost directory Inside “IfModule mod_rewrite.c”
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot “/web/sites/sitename”
ServerName https://www.sitename.com
ServerAlias https://www.sitename.com
ErrorLog “logs/sitename_log”
CustomLog “logs/sitename_log” common<LocationMatch “^/(.*\.php(/.*)?)$”>
ProxyPass fcgi://127.0.0.1:9000/web/sites/sitename/$1
</LocationMatch><Directory “/web/sites/sitename/”>
Options FollowSymLinks<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule></Directory>
</VirtualHost>This worked for me. Now it’s off to more guides to secure the #@S! out of it.