While the plugin might solve your problem you could try something direct with WordPress API:
add_action( 'template_redirect', 'wpse_142191_all_redirect' );
function wpse_142191_all_redirect() {
if ( !is_user_logged_in() ) {
wp_redirect( 'http://other-site.com', 301);
exit; //always die or exit after redirect
}
}
Be careful with it,this will redirect the whole site on the home page of other site. I added a condition, maybe you do not want to be redirect as a user of website.
Related Posts:
- wordpress custom login successful redirect hook
- How to redirect Old Post URL to new Post and keep Old post Comments?
- How to export comments in WordPress?
- How can I call a function from one plugin within another plugin?
- Gutenberg disallow certain custom blocks but keep all core blocks?
- Remote upload file to server B
- Publish author posts only with editor approval?
- Using functions from a plugin in your theme
- Keep one user logged for a year?
- Customizing subject in comment notification e-mails
- WP showing “warning: call_user_func_array()”, What to do?
- Declare a function before plugin does on the theme functions.php file
- Generate Advanced Custom Fields box in custom admin menu page
- How to turn off email you receive when registered?
- Removing user contact methods works from functions.php but not from a plugin
- Execute a function using ajax
- Use functionality of 2 wordpress plugins
- How can i change an image’s author?
- What’s the _wp_desired_post_slug value for?
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- Showing Co-Authors on post page
- jQuery Plugin to use WordPress functions in AJAX request
- Debugging Technique Question re: functions.php
- The Point of Using apply_filters()
- WP Job Manager Category Drop-down; Change Placeholder Text Via Filter
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- Custom Taxonomy Tag Search
- Redeclare theme’s function in a plugin
- I have functions in my wordpress plugin. How do I get them to work for me?
- Change wordpress current_time function to different timezone
- How to override a plugin function wrapped in a class?
- Edit Yoast SEO breadcrumbs output [closed]
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- Using a post-signup hook to get user details
- Restrict media upload size by format
- Calling plugin function inside custom plugin for onclick event
- How to fix the woocommerce – adaranth.com redirection issue [closed]
- Facebook Messager Plugin
- Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category
- Plugin is a widget, but I want to call it in the head, can I?
- Removing Automatic Redirects Without Plugin
- Cannot get wpdb data (Error in a simple fuction) [closed]
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- Basics of changing plugin output
- Why can’t I call a (member) function from within a foreach?
- Are there action hooks for comments?
- Help with WP Business Directory Manager Plugin?
- Shortcode Attributes to Return different $_POST
- Plugin onclick button activate other plugin
- Loading a plugin’s js file from functions.php
- Activate and deactivate plugin automatically
- dynamic name of the style for wp_enqueue_style
- WordPress function to add text warning on every pages [closed]
- How to access OOP plugin function inside themes or other plugin
- Conditional custom redirect
- Call javascript functions from each page
- Add_image_size not generating correct size
- wp redirect 301 not working in wordpress page
- Elementor Pro display featured image on section -> style -> image using shortcode
- How can i call a functions.php function, from inside my plugin class?
- How to make WooCommerce payment method field optional?
- Create a pdf from the entries in DB
- RSS feeds for specific topics
- WordPress Custom Hook with Class method
- Identify User Language, Redirect to the corresponding page and Save the chosen language as Cookie
- Allow a particular user to access a particular plugin?
- how to define a html folder to make it work with WordPress commands
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- Display value of the GET parameter in a new URL page
- ACF Fields are not showing up on Homepage
- Use buddypress function outside of plugin
- Securing langugae folder
- Call function with button and return response
- Use action, filter, or hook to append HTML to WordPress plugin function
- Return function results within shortcode
- Save Post Permalink In .txt File
- Why is WP template_include overwritting all templates rather than specified page?
- Infinite 301 redirects after definitions in “Redirections” plugin?
- Disqus comments count taking long to update
- plugin not hooking to my custom hook
- Populate select option with JSON file
- How to Call Function From Separate WordPress Install on Same Server?
- How to echo a plugin’s function into a template?
- Wp Ecommerce Reposition Product Page Product Thumbnail Image
- It possible to implement an adhoc php web application with wordpress?
- How to Overwrite validate_plugin function
- making a glossary with wordpress
- date function not correctly returning date
- Disable plugin function
- Trying to output a “Most visited blogs” list in wordpress multisite
- Access to wordpress method inside of classes
- How to prevent page load on form submission
- wordpress Search function is not working
- What is wrong with this dbDelta syntax?
- Call a function with href
- PHP Creating a formula from mysql db values and db stored math operator
- How to disable plugin capability : “create new category”
- Option value not getting updated until page refresh in WordPress
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode