500 error when using virtual host

You should have a look at this: Request exceeded the limit of 10 internal redirects due to probable configuration error.? and RewriteRule Flags It seems that you have a recursion in there. It is probably the last rule as the dot without anything else will match index.php as well.

How to redirect all 404 in a WordPress subdirectory to the index.php of subdirectory?

You can use a custom endpoint. Just be sure you flush the rewrite rules after it has been added/changed – not every page load! This will turn http://yoursite.com/dev/abc/asdfasdfsdf into http://yoursite.com/dev/abc/index.php?whatever_you_want_your_index_to_see=asdfasdfsdf More Info on rewrite rules: http://code.tutsplus.com/articles/the-rewrite-api-the-basics–wp-25474. After you add a rewrite rule like add_rewrite_rule(‘^dev/abc/([^/]+)/?$’, ‘index.php?’.self::ENDPOINT_SYMBOL.’=1&’ . self::ENDPOINT_PARAM . ‘=$matches[1]’, ‘top’); You can use this great … 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

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

Hide pages from google and visitors

Add a simple checkbox to the post editor to toggle the generation of a meta field that disallows search engines to index your content. Then hook into wp_head, check for the setting and print that field. Sample code for a plugin: add_action( ‘post_submitbox_misc_actions’, ‘show_noindex_checkbox’ ); add_action( ‘save_post’, ‘save_noindex’, 10, 2 ); add_action( ‘wp_head’, ‘insert_noindex_meta’ ); … Read more

Pagination problems with multiple custom post type archive pages

Your problem comes from a fundamental misunderstanding of how WordPress loads the main loop. Here you have a main query that goes and grabs the posts to display in your post type archive. It then decides to load archive-recept.php based on that query. The call to paginate_links then provides the pagination for that main query. … Read more