custom naming of search permalink /search/

The reason it isn’t working is because you haven’t told WordPress how to handle that page. You can do so by applying a rewrite rule in the following manner. add_action( ‘init’, ‘wpse_63716_search_rule’ ); function wpse_63716_search_rule(){ add_rewrite_rule(‘^suche/([^/]*)?’, ‘index.php?s=$matches[1]’, ‘top’); } Don’t forget to flush the permalinks after adding the above code.

Add .html extension to custom post type taxonomies

I’ve tested your first attempt with using a rewrite rule it works add_action(‘init’, ‘add_html_ext_to_custom_post_type_taxonomies’); function add_html_ext_to_custom_post_type_taxonomies() { add_rewrite_rule(‘^product_cat/(.+)\.html’, ‘index.php?product_cat=$matches[1]’, ‘top’); } but you have _ not – had you noticed this as you give your example as www.mydomain.com/product-category/product-category-name.html If its not a mistake it might be you have another rule conflicting with it? and also … Read more

unexpected problem in url rewrite

first, you need to add your custom_gallery_id to query vars if you haven’t already: add_filter( ‘query_vars’, ‘wpse26388_query_vars’ ); function wpse26388_query_vars( $query_vars ){ $query_vars[] = ‘custom_gallery_id’; return $query_vars; } for your rewrite rule, you need to load a WordPress object– a page, a category, etc., and all internal rewrites must point to index.php. if topic, place, … Read more

Domain redirect in WordPress multisite

What I want to do is redirect www.domain2.com to www.domain1.com/domain2. Then you don’t want to do it via htaccess. You need to use the WordPress MU Domain Mapping plugin. Map any blog/site on a WordPressMU or WordPress 3.X network to an external domain. Also see: WordPress 3.0: Multisite Domain Mapping Tutorial The other day, Klint … Read more

Dynamic URL, not a physical page within the database

add_rewrite_rule can help you sniff the request and let you handle it however you want. if( ! class_exists(‘PropertiesEndpoint’)): class PropertiesEndpoint { // WordPress hooks public function init() { add_filter(‘query_vars’, array($this, ‘add_query_vars’), 0); add_action(‘parse_request’, array($this, ‘sniff_requests’), 0); add_action(‘init’, array($this, ‘add_endpoint’), 0); } // Add public query vars public function add_query_vars($vars) { $vars[] = ‘__properties’; $vars[] = … Read more

htaccess or redirect to cloak portion of a link?

What you need to do is set up a custom rewrite. This can change something like http://site.com/rotate/1 to http://site.com/wp-content/plugins/ad-rotating-plugin/rotate.php?trackerid=1 Here is some untested code that might help: <?php /* Plugin Name: Your Plugin Plugin URI: Description: Version: 0.1 Author: Author URI: */ // Add rewrite rule and flush on plugin activation register_activation_hook( __FILE__, ‘ad_rotate_activate’ ); … Read more

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