Cannot access to dashboard on localhost
Finally, the solution was wp_options by updating the website URL. This query is helpful UPDATE wp_options SET option_value=”YOUR_SITE_URL” WHERE option_name=”siteurl”
Finally, the solution was wp_options by updating the website URL. This query is helpful UPDATE wp_options SET option_value=”YOUR_SITE_URL” WHERE option_name=”siteurl”
function after_login_redirect_to_destination(){ if (!is_user_logged_in() && !is_home()){ $redirect = home_url() . ‘/wp-login.php?redirect_to=’ . urlencode( $_SERVER[‘REQUEST_URI’] ); wp_redirect( $redirect ); exit; } } add_action( ‘wp’, ‘after_login_redirect_to_destination’, 3 ); the above sample code works and redirect to the login page and after successfull login it will redirect to home page. Whenever a non-logged in user try to access … Read more
How do I generate formatted permalinks as specified in backend options?
Ok, this was pretty strange. While only http// showed up in the URLs the database fields for the corrupted URLs were http://http// which obviously resulted in the error. I did another search & replace for those “double http” and that fixed it in the end. Still no idea why this only happened to some URLs … Read more
Don’t add more sites to point more domains to the same site. Just add more domains to the same site from this address /wp-admin/tools.php?page=domainmapping of the dashboard of the site. You might need to disable primary domain check from this network admin page /wp-admin/network/settings.php?page=dm_admin_page if you don’t want the domains to all redirect to the … Read more
First of all, go to phpMyAdmin, go to your database for test.site.com and edit siteurl and/or home in wp_options table. That’ll fix your test.site.com Now, to migrate test.site.com to site.com, as you’ve difficulties doing it manually, I’d suggest a plugin like Duplicator or All-in-One WP Migration to migrate the site. It’s way easier that way. … Read more
WordPress is strongly opinionated about using absolute URLs. It’s not right or wrong, just the way it is. One of the reasons for their decision is exactly the unholy complexity of migrating relative URLs, which can be very hard to adjust when moving levels is involved. If existing WP install is using relative URLs, then … Read more
Special Characters and Spaces are not transferred correctly via AJAX call.
$matches[1] doesn’t work for external redirects, only internal (URL must start with index.php and handled by WordPress itself) Try this add_action(‘init’, ‘custom_rewrite_pdfURL’); function custom_rewrite_pdfURL() { add_rewrite_rule(‘^carPDF/([^/]*)/?’, ‘wp-content/themes/exampletheme/templates/pdf-generator.php?productID=$1’, ‘top’); } Don’t forget to flush permalinks
The nameservers listed for your domain are still at wordpress.com – you need to go into the domain section of your 123-reg panel and set those to 123-reg defaults.