redirecting an entire WP site from one top level domain to another
No, you’d want a rewrite rule that captures & redirects the request: RewriteEngine On RewriteBase / RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
No, you’d want a rewrite rule that captures & redirects the request: RewriteEngine On RewriteBase / RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
A parent and a child theme haven’t been designed to do this. In your case you need to create template file for your tags (cities) i.e: single-paris.php, and load it with template_redirect filter, according to the request. Another way to achieve it, is to add a body class that will call another css values, but … Read more
There is no fail proof way to know if the site support https without actually trying to send a request over https to it (wp_get_remote for example). HTTPS traffic can be terminated on a load balancer and the traffic between it and wordpress done over http, therefor it is not obvious you will find any … Read more
When they say “where core files reside” they are referring to the url where they can be reached. Since you’re using a load balancer, you want those requests to be split across both your servers. To configure WordPress in a load balanced environment, you need to configure a couple of settings. I like to do … Read more
1) You have to change all references of www.mydomain.com to mysite.com in WP. WP will only respond to the hostname/url that it was configured for. If you make a request with a different url, WP will respond with an error message. WP stores the url in two places wp-config.php and the database. In wp-config.php just … Read more
Here’s a clean and sure way that I follow when I migrate a WordPress to a new domain (or subdomain): Go and download Interconnect IT’s Database Search & Replace Script here Unzip the file and drop the folder where your WordPress is installed (the root) and rename the folder to replace (screenshot) Navigate to the … Read more
Assuming you are using apache and have access to edit code files, add the following into your .htaccess file in the root directory of your site, somewhere right after the “RewriteEngine On” line. RewriteCond %{HTTP_HOST} ^a.com [NC] RewriteRule ^(.*)$ http://b.com/$1 [L,R=301,NC]
I figured it out. I put these rewrite rules in .htaccess: RewriteCond %{QUERY_STRING} ^id=([^/]*)&n=([^/]*)$ RewriteRule ^show/?$ /show\/%1\/%2\/? [R=301,L]
You may have to go directly to the database, via your cPanel. More often than not, you can still navigate to http://[yourdomain]/cpanel, even if you’ve 301’d your site. From there, you should be able to find the wp_options table and set the domain record again. Failing that, what’s Bluehosts policy on rolling backups? Are you … Read more
What you want to do is Domain Name Forwarding, and it CAN NOT be done using .htaccess of the target domain. If you are using godaddy to register your domain, here is a guide that they have prepared for people who would want to forward one domain to another: https://ph.godaddy.com/help/manually-forwarding-or-masking-your-domain-name-422 The process is about the … Read more