@lukaszo
1.Check this article: https://ww.wp.xz.cn/support/article/settings-permalinks-screen/
Some steps to follow are:
1.save permalinks settings
2.check htaccess code
Hope this helps
Thanks
Suman W.
Thanks for your answer but still the problem occurs. Post not found in permalinks post name.
Did you modify your .htaccess file when you switched from http to https? If so, please post your .htaccess file.
My .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Try this instead:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://infoskalmierzyce.pl/$1 [R=301,L,NE]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Still not found. 🙁
the problem appeared after switching to SSL, it was good before.
What do you have set on the permalinks settings page?
When i choose post name, all of posts not found. Go to my site and check.
Good. Now I think this is a hosting issue. How are you hosting your site?
BINGO!
In the virtual host configuration for your site, add
<Directory /path/to/wordpress/installation>
AllowOverride All
</Directory>
The default is “None”, which causes Apache to ignore .htaccess files.
After making the change, restart Apache.
Awesome! It’s works! Thanks for your help.