Tag Info

New answers tagged

0

No need to manipulate the DNS protocol. You can simply add multiple A records with different IPs. The DNS server will return the various A records in random order, thus your users will be distributed randomly across the various IP addresses.


0

You can't use a PHP superglobal eg. $_SERVER["MYVAR"] in an htaccess expression. (Apache .htaccess files are processed before PHP gets a go, but anyway $_SERVER["MYVAR"] is PHP syntax not Apache mod_rewrite syntax). However, depending on what MYVAR contains, there might be an alternative. This rewrite should only occur if sitemap.xml is requested Your ...


2

This occurs because the .htaccess will be inherited in all child directories. This is a common issue when using add-on domains because each domain shares the same path environment. This can be resolved by any of the following: Use more secure hosting with jailed accounts Use a .htaccess in each add-on domain child directory Use %{HTTP_HOST} ...


1

If the /account subfolder is intended to be outside of WordPress then you can do something like closetnoc suggests, however, you also need to enable the rewrite engine to prevent the WordPress rewrites in the parent .htaccess from taking over. So, in /account/.htaccess: ErrorDocument 404 /error.php # Enable the rewrite engine in the subdirectory to ...


0

There's a couple of things you can try that I'll show starting with the easiest: <VirtualHost *:443> DocumentRoot /var/www/html ServerName ###### ServerAlias ###### ErrorLog logs/######-error_log CustomLog logs/######-access_log combined <Location /user/register> Order deny,allow Deny from all Allow from ***.***.***.*** ...


0

You are redirecting all requests to HTTPS (port 443 by default), but your <Location> directive is in the <VirtualHost *:80> container (port 80 - HTTP). Aside... the <Location> directive is generally not recommended for restricting access since resources can often be accessed by multiple URLs, circumventing the restriction. (For instance, ...



Top 50 recent answers are included