using cpanel.
I have tried this:
- Go to Settings » Permalinks, and simply click on Save Changes button.
- changing my .htaccess to 666
> # 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
It’s still not working.
2
Answers
Login to your server using FTP, and modify the .htaccess file which is located in the same location where folders like /wp-content/ and /wp-includes/ are located.
The easiest thing you can do is to temporarily make the file writeable by changing the permissions to 666. Then repeat the original solution.
Case 2 :
Login to your server using FTP, take backup of .htaccess and remove the .htaccess file or you can rename htaccess.
Login to admin dashboard and update permalinks.
How to update permalinks?
Permalinks require mod_rewrite on webserver and should work after you click Save button on Settings > Permalinks screen from WP admin dashboard.
Due to various plugins or updates, the permalinks structure can sometimes get broken and 404 pages are shown on previously working URLs. You can Save permalinks again from backend.
There’s also an automated fix by adding this code to index.php :