Permalinks for parent/child pages and custom post types

Disable the with_front on rewrite while register_post_type. In your case: register_post_type(‘news’, array( … ‘public’ => true, ‘rewrite’ => array(‘slug’ => ‘news’, ‘with_front’=> false), ‘supports’ => array( ‘title’, ‘page-attributes’, ‘editor’, ‘custom-fields’) ));

WordPress Permalinks still not working despite all necessary settings

Since the domain/site has an ssl, the vhosts file for the ssl is separate and also needs to be updated. Not just the normal port 80 entry. vhost (:80) my-wp-site.com.conf <VirtualHost *:80> … DocumentRoot /home/ubuntu/sites/my-wp-site.com … <Directory /home/ubuntu/sites/my-wp-site.com> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> … </VirtualHost> vhost (:443) my-wp-site.com-le-ssl.conf <IfModule mod_ssl.c> <VirtualHost … Read more

Need Help Correct Regular Expression Redirect Code

At the top of your .htaccess file, before your existing WordPress directives, you could do something like the following to redirect the old permalink: RewriteRule ^\d{4}/\d\d/([\w-]+\.html)$ /$1 [R=301,L] The RewriteRule pattern matches against the URL-path less the slash prefix. \d{4}/ – matches the 4-digit year, followed by a slash. \d\d/ – matches the 2-digit month … Read more

Permalinks for pages

You can make each page a parent of one another. To assign a parent page to a page, navigate to the page you want to assign a parent page too, then in the right sidebar you will see Page Attributes and a dropdown menu labelled Parent, whatever page you selected in that list will become … Read more

WordPress blog posts permalinks giving 404 on nginx

You should use the ^~ prefix on the location statement, change the alias statement to root /var/www;, and change the last parameter of the try_files statement. For example: location ^~ /blog/ { autoindex on; root /var/www; index index.php; try_files $uri $uri/ /blog/index.php?$args; location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; } }

AWS WordPress Install – pages/posts 404 on restart until updating permalinks

This answer was based off the comment from @Rup on the question. I needed to add a .htaccess file to my source. I did this with the default contents: # BEGIN WordPress RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)