I need to allow user registrations only for those with email addresses on a single domain. I have tested multiple regular expressions and this one works well in a regex sandbox environment, but as soon as I put it into my functions.php file, it simply rejects all registrations - even email addresses on the correct domain (with the error message below, so it's definitely this conditional that's breaking it). Am I: a) actually doing something stupid in the regex, even …
we had our Wordpress page running on example.com. But now, we're developing new React website, which already has some of the webpages ready. We use Vercel to host that React website. We want React/Vercel to host specific pages (which are already developed) and serve the wordpress page as a fallback. E.g.: React already has page example.com/pageA ready, so we want that URL to be served directly by Vercel/React. On the other hand, React doesn't has page example.com/pageB ready, so we …
I have a multisite website with 5 domains in WordPress which uses WordPress MU Domain Mapping plugin. I want to redirect every subpage to new domain, but we will be still using the homepage, because it contains some links inside of it, so root, wp-admin and wp-login, should be still accessible and not redirected. How to set this up in .htaccess so WordPress will still function? example of a domain: oldone.com/ --> no redirection oldone.com/wp-admin --> no redirection oldone.com/wp-login --> …
Our multisite WordPress installation has a URL of https://xx.com for the main domain, and - for example, https://yy.xx.com as a subsite. We're using WP's in-built domain mapping feature. Media library links are still showing up as http://xx though, so any images used on the subdomains are flagged up as insecure. Only one subdomain - our most recent one - has media library links with a structure https://zz.xx.com. It's possible that the SSL certificate was installed after the other subdomains were …
I recently adquired a new domain I would like to use for my old wordpress site. I managed to configure this new domain in the same server and pointing to the main page. However, after changing the Wordpress URL and website URL fields under Settings, the layout for the site breaks. It's like the theme I'm using gets corrupted. What is the correct way of switching from one domain to another? I looked at http://codex.wordpress.org/Moving_WordPress but this doesn't mention the …
I have a local WordPress install running through MAMP. It's local domain is example.dev I also have the install working with xip.io. It's at example.dev.0.0.0.0.xip.io (0's being my ip address). Right now the only way I seem to be able to get xip.io working is to add define('WP_HOME', 'http://example.dev.0.0.0.0.xip.io'); define('WP_SITEURL', 'http://example.dev.0.0.0.0.xip.io'); to my wp-config.php file. This forces anyone going to example.dev to go to example.dev.0.0.0.0.xip.io The issue is at the office, my computer has a static IP address. At home, …
I'm new to wordpress I recently built a web server on my local machine, I managed to make it accessible to all users in my LAN via IP address. Is there a way to use domain name instead of IP address?
I've created a website with Wordpress and the site is under a wpstaging.com domain at the moment. I have my main domain name and hosting with an external hosting company - nothing has be set up on that yet. I would like to find out how to go about changing the wpstaging.com domain name to the one I've got with the hosting company and moving the website over to the new domain name without damaging the current website.
I am migrating a page plus new to Wordpress and picked a nice project for a steep learning curve :). I am looking for input, on how to best design this (1 domain, subdomains, or any other structure) for a good performance: - static page (20 pages) - blog (100 posts and growing) - currently about 1k-2k hits a month - LearnDash integration - Woocommerce shop (for courses and physical products) - Future: Forum or some kind of a social …
I do have a very basic question, but struggle to understand things. I do have a Wordpress, host on WorldLite by Planet Hoster. Url is something like "mysite.go.yo". When I go to a post, url becomes "mysite.go.yo/my-awesome-post". Now, I simply would like to switch from "mysite.go.yo" to something more sexy, like "mysite.com". I am just talking about the browser url display, purely cosmetic, not actually moving files. I would also like that links appear as "mysite.com/my-awsome-post" rather than "mysite.go.yo/my-awesome-post" or …
I have wordpress setup with the domain set as mydomain.com I have a secondary domain that is mydomain.com.au Can I make wordpress use mydomain.com.au if someone comes to the site from a link that is mydomain.com.au. Any if they navigate through the site it stays as .com.au But if they come from mydomain.com it stays on mydomain.com when navigating? I've tried this but the url always shows as mydomain.com https://stackoverflow.com/questions/29915680/wordpress-2-domains-to-point-same-directory
I have a domain and one subdomain. The domain has a installed SSL with valid certificate but the subdoamin doesn't have it. I have a link from domain's wordpress header.php file that pointing main page in subdomain. The link supposed to be as HTTP but it was changed to HTTPS. I edit header.php file but after update the file it changed to HTTPS again. I installed Wordpress HTTPS plugin in domain wordpress. What I have done: The domain wordpress is …
Unfortunately, it seems I have a misconfiguration in my wordpress instance. WordPress seems to remove the trailing slash. This only happens when the domain is accessed via www. When I open http://schwelme.de/merkzettel/, everything seems to work. However, when I open http://www.schwelme.de/merkzettel/, the trailing slash is removed. My .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> RewriteEngine On RewriteCond %{HTTP_HOST} !^www.schwelme.de$ RewriteRule ^(.*)$ …
What I want to do: Redirect old domain to new domain Redirect all urls of old domain to new domain's home page (Old and New site serves different contents) What I've done: 301 redirect old domain to new domain by using RewriteRule ^(.*)$ http://example.com$1 [R=permanent,L] changed site url and home address of the old domain to new domain Problems: It only redirects the home address (Old-Example.com) but not the content of the old website. The 404 pages of old website …
While debugging Wordpress password reset functionality in a test environment on a local macbook, Wordpress would get stuck when sending emails. Basically, before sending emails, a check is done in wp-includes/pluggable.php on sender email address, subject, etc, and further debugging showed that Wordpress is failing on line 408 (in version 5.8.2) $phpmailer->setFrom( $from_email, $from_name, false ); Ironically, this built-in check is performed before my custom action would correctly set the parameters: add_action( 'phpmailer_init', 'my_phpmailer_example',5 ); function my_phpmailer_example( $phpmailer ) { …
I have been using WordPress multisite for several years without a problem. At some point in the last few days one of my many multisite domains is stuck in a redirection loop. The domain is http://www.drandrewhall.com and as of this writing is stuck in a redirection loop. This worked fine until a couple days ago. I have removed it from the domain mapping plugin and added it back in. I can remove the www domain and add in just the …
I have website 1 (www.website.com) and website 2 (www.website.com/private I am using a plugin to set up single sign on between my other php site and Wordpress. This works fine on a subdomain (www.website.com & private.website.com with define('COOKIE_DOMAIN', 'website.com'); On the subdirectory set up define('COOKIE_DOMAIN', 'website.com'); This will make the login loop forever and never login. define('COOKIE_DOMAIN', 'website.com'); define('COOKIEPATH', '/private'); This will work for a short while but then cookies on website 1 (www.website.com) will stop working and you cannot …
I moved from www.domain1.com to www.domain2.com However, the image paths are still pointing at www.domain1.com/wp-content/uploads.... So when www.domain1.com went down, all my images are not showing anymore. I updated the wp_posts table where all attachments now point to www.domain2.com/wp-content/uploads..., but the images exist in www.domain2.com and I still cannot see any image. Is my caching is off?
I am using WordPress multisite setup to set the following structure example.com sub1.examples.com example.net Note that this is a single multisite setup, but it has two main domains and a subdomain. I followed the steps described here to perform the setup. Then, after adding example.net to the sites list, I tried to go to its dashboard in the admin section. Once I did that, I was presented with a login screen. When I try to login, I receive the following …
I've done a fair bit of searching and I see that WSOD is common upon changing your domain, however all the fixes I've gone through have not remedied my situation. My new domain is http://uncvrd.co (switching from affinityfm) however, when you follow the link, it only shows a white page. Here are the steps I've taken to attempt a fix: Went to hosting site (hostgator) and switched the primary domain to uncvrd.co In Wordpress settings, I changed the url to …