I need users land into home page
-
Hello,
Thank you very much for a great plugin.
I am using your plug in and works great, but I am facing a little problem and I don’t know how to fix it. I was wondering if you have vision or advice can help me.The recent site that I am working on is a private site, meaning users entering to visit and download documents. It’s important that they land on home page not into the admin panel/dashboard.
The Home page is a custom_type blog page.
I was able to reach my goal( have a private site and land on home page)when I was working in my local xammp environment.
I moved the site to a new location, exported db from wordpress, followed all the necessary steps, and everything works except one thing that make total sense but I need to fix and I don’t know how.
Here is the problem:
The addresses before moving to new site:
WP url: https://example.com/wordpress
Site url: https://example.com/wordpress = home pageThe addresses after moving to new site:
WP url: https://example.com/wordpress
Site url: https://example.com = home pageI am using jonradio-private-site plugin to make the site private and using the below function which was working in my local host. The function supposedly allows user to land on home page.
add_action(‘login_form’, ‘redirect_after_login’);
function redirect_after_login() {
global $redirect_to;
if (!isset($_GET[‘redirect_to’])) {
$redirect_to = get_option(‘siteurl’);
}
}
without this function, site still will be private, but user will land in admin panel.Now that I have changed the site’s address and copied index and htaccess files to the root and modified the index file, if I keep the function users will land on a page with this url: https://example.com/wordpress which of course user sees a wp 404 page.
So, I need to replace (‘siteurl’) with something else and I have no idea what………any idea or any better way to do this?
I appreciate any advice
Best,
wp-newbeehttps://www.ads-software.com/extend/plugins/jonradio-private-site/
- The topic ‘I need users land into home page’ is closed to new replies.