url rewrite .htaccess extension to permalink

This should work for you- function wpse28906_rewrites_init(){ add_rewrite_rule( ‘mypage/([^/]+)/?$’, ‘index.php?pagename=mypage&myslug=$matches[1]’, ‘top’ ); } add_action( ‘init’, ‘wpse28906_rewrites_init’ ); function wpse28906_query_vars( $query_vars ){ $query_vars[] = ‘myslug’; return $query_vars; } add_filter( ‘query_vars’, ‘wpse28906_query_vars’ ); You can then use get_query_var( ‘myslug’ ) in your template to get your slug value. Don’t forget to flush your rewrite rules after adding … Read more

Permalinks on post is working, on pages 404 error

There’s not much info available by following your link. I suggest the basic troubleshooting steps: Disable all plug-in’s and test the links Switch to Twenty-Ten or Twenty-Eleven theme If it’ still not working, make sure you have the default .htaccess and nothing more. Here is what it should look like (I had to link to … Read more

Format HTTP links

Actually, the extension is irrelevant. When your page is returned, WordPress is setting the content-type for the file in the headers as text/html; charset=UTF-8. This tells any consuming application that the content is HTML, not XML. You need to force WordPress to send the appropriate headers when outputting the XML. This content type is set … Read more

Changing the permlink and SEO

You can check the status of the redirect using any number of developer tools (chrome can do this by default). I believe the default redirect that wordpress does when the post title is changed is a 301, but I could be mistaken. If you need finer control (or would like regex support), the Redirection plugin … Read more

add_query_vars and canonical links

WordPress thinks you’re on those pages because of the pagename query var in your rewrite rules. Your journey is going to start in wp-includes/default-filters.php, which every WP developer should known and love: it’s where the WordPress care uses its own plugin API to hook in and change stuff. Of interest to your question: <?php add_action( … Read more

How can I emulate permalink behaviour on static pages

You need to add rewrite rules and the query_vars to fit your needs. For example. In your functions.php or plugin file: // Register a new vars to be used in the rewrite rules add_filter(‘query_vars’, ‘properties_add_query_vars’); function properties_add_query_vars( $vars) { $vars[] = “my_action”; // name of the var as seen in the URL return $vars; } … Read more

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