wordpress_permalinks
Permalink rewrite rules
.htaccess apache rewrite
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)\ HTTP/ [NC] RewriteCond %{HTTPS} !=on [NC] RewriteRule ^/?(wp-admin/|wp-login\.php) https://mysite.com%{REQUEST_URI}%{QUERY_STRING} [R=301,QSA,L]
nginx
Apply the following in the location / section in your server block:
try_files $uri $uri/ /index.php?q=$request_uri;
wordpress_permalinks.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1