After changing permalink, getting 404 for one particular category
After changing permalink, getting 404 for one particular category
After changing permalink, getting 404 for one particular category
I’ve found a solution – this needs to be added to the .htaccess ErrorDocument 403 /path-to-your-site/index.php?error=404
I just made it a full URL Path so https://example.com/404.php and that works great….kinda obvious – and I wonder if that is ‘not the WordPress way’
Fixed it by placing the htaccess with the rule in the media-folder, instead of public_html. Silly me. 🙂
Clicking PUBLISH Now Redirects to 404 PAGE NOT FOUND
The solution was to allow using .htaccess in /etc/apache/apache2.conf by changing from AllowOverride None to AllowOverride All. More about it here So that section related to my local website now looks like: <Directory /var/www/local.webiste.com/public_html> Options Indexes FollowSymLinks AllowOverride All Require all granted Allow from 127.0.0.1 </Directory>
If you look at the recommended .htaccess files for WordPress, there’s a difference (yours has example.com/, whereas the recommendation is /. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress I don’t know if that’s what’s causing … Read more
Well mate you can try out the following code in .htaccess file. <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType image/gif “access 1 year” ExpiresByType image/png “access 1 year” ExpiresByType text/css “access 1 month” ExpiresByType text/html “access 1 month” ExpiresByType application/pdf “access 1 month” ExpiresByType text/x-javascript “access 1 … Read more
Downloading zip or tar.gz inside WordPress installation?
How to properly give WordPress its own directory