WordPress URL Problems After Change it

You can do this with 301 redirects. There is a nice easy plugin that will allow you to do this. https://wordpress.org/plugins/simple-301-redirects/ If you want to do it on a little lower level you can edit your .htaccess file with the structure you require. Yoast provides a easy to use generator available here: https://yoast.com/wp-content/permalink-helper.php

WordPress Permalinks 404 error

Could you try to replace .htaccess with the following? It looks like you’ve installed WordPress in a subfolder called solutions. # BEGIN WordPress RewriteEngine On RewriteBase /solutions/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /solutions/index.php [L] # END WordPress

Page_link change

As suspected, this needed a rewrite rule.. I don’t know why post_link filter didn’t need a rewrite rule added.. function ba_rewrite() { add_rewrite_rule(‘^([^/]*)?.php’, ‘index.php?pagename=$matches[1]’, ‘top’); } add_action( ‘init’, ‘ba_rewrite’ );

Change Image depending on page path

If you are dealing with a category page, you would simply use conditional tags, as suggested by @milo: if ( is_category( ‘cat-1’ ) ) { $url=”my-background-image-url-1.ext”; } else if ( is_category( ‘cat-2’ ) ) { $url=”my-background-image-url-2.ext”; } remember, you could pass in a category slug as well as a category name or an array containing … Read more

How to structure a wordpress site in folders?

I would suggest a combination of using pages for the parent directory content and comments handling e.g with the slug/cars-home/ and a custom post type to gather each single cars e.g. /cars/red/. — /cars/red/ (single CPT) — /cars/blue/ (single CPT) — /cars/white/ (single CPT) –/cars-home/ (page) Next you can either add a custom loop to … Read more

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