I used the mod_rewrite module for redirection before. Now after installing the mod_ssl module, mod_rewirte redirection becomes invalid? What is the reason? I tried changing the loading order of the two modules of loadmodule in the apache configuration file but it didn't work either
You didn’t add a Directory block in the VirtualHost block of ssl. The inside is inconsistent with your external directory options. For example, the outside is AllowOverride All but the ssl configuration is AllowOverride None. If your DocumentRoot is consistent with the outside world, try removing the Directory block in ssl and try again.