Change permalink only on new posts

Your permalink structure is global; it is not a property of individual posts. There is no way to indicate that one post uses a certain permalink structure while another uses a different one. This makes sense when you think about how WordPress processes requests. Using the new structure, WordPress maps the request to index.php?name=$1 where … Read more

Move WordPress site from one domain to another

There are a number of ways to do this, Install WordPress on new host, export, then import post data (via Dashboard) XML file Install WordPress on new host, export, then import MySQL database file Use a back up plugin that allows you to clone your site from host-to-host (1:1) In both cases 1 and 2, … Read more

Rewriting search permalink

WordPress doesn’t know that you want the path /searchmyblog/ as search result base. So when it sees the a it tries to find the best match – in your case a post starting with this letter. To fix that you could modify my code for the pagination base to change the search base: if ( … Read more

Permalinks not working (.htaccess is writable)

Have you tried something simple to ensure it is actually rewriting? Something like… RewriteEngine On RewriteRule ^.*$ verified.php Then create a verified.php page… <?php print ‘mod_rewrite works!’; ?> Now you should hit that page no matter where you try to go on the site. If you don’t mod_rewrite isn’t working. You can also turn on … Read more

removed index.php now all pages 404

If you want to remove the index.php from your URL structure, then using this rewrite rule (assuming you’re using Apache, from your question) in your .htaccess will help. # BEGIN WordPress RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress Then, flush permalinks by either using WP-CLI … Read more

WordPress Permalinks %postname% for RSS2 Feed URL

First of all there isn’t any default way of doing this as far as I’m aware. If you use the ‘Rewrite rule inspector plugin‘ you’ll see that there isn’t any default rule that combines the category, the date and the feed as parameters. An example date rule is ([0-9]{4})/([0-9]{1,2})/?$ index.php?year=$matches[1]&monthnum=$matches[2] and an example category rule … Read more

Should I use relative or absolute urls when pointing to internal pages

It depends on what you’re talking about. If you’re talking about using just <a href=”https://wordpress.stackexchange.com/page-title”>Page Title</a>, then no. It’s better to use the full link. However, instead of using http://www.domain.com/page-title, it’s better to use <?php echo bloginfo(‘url’); ?>/page-title. The reason you don’t want to use relative links is the way wordpress permalinks work. If you’re … Read more

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