I have a site that I change the permalinks to /%post_id%/%postname%/
but all other pages (other than home page) cannot be loaded after the setting. They give me a page not found error… Once I change the permalinks back to the default settings, I can then load the pages.
Usually WP updates the file when you turn on permalinks. If for some reason it can’t update the file automatically, it gives you the code to add to .htaccess manually.
The code 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
Yes, but the old .htaccess was there to hide your php.ini, now it’s publicly accessible - not good. If you just moved the WP code to the end of the file, or removed the ‘RewriteEngine off’ line, it would both work.