Skip to main content
deleted 62 characters in body
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15

Specifically in the directory where HTTP exists. We want .htaccess enabled. "AllowOverrided all" does this; FollowSymLinks allows use to change options in the .htaccess; and "Require all granted" is the newer syntax of "Allow from all" which relates to blocking IP addresses from access to the host, don't want to block anyone, "all granted"; The -Indexes is turning off listing of the files in a directory, there is not one but we don't want to need to change this if usage changes.

Specifically in the directory where HTTP exists. We want .htaccess enabled. "AllowOverrided all" does this; FollowSymLinks allows use to change options in the .htaccess; and "Require all granted" is the newer syntax of "Allow from all" which relates to blocking IP addresses from access to the host, don't want to block anyone, "all granted"; The -Indexes is turning off listing of the files in a directory, there is not one but we don't want to need to change this if usage changes.

Specifically in the directory where HTTP exists. We want .htaccess enabled. "AllowOverrided all" does this; and "Require all granted" is the newer syntax of "Allow from all" which relates to blocking IP addresses from access to the host, don't want to block anyone, "all granted"; The -Indexes is turning off listing of the files in a directory, there is not one but we don't want to need to change this if usage changes.

edited body
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15

If these conditions are true 301 to new location. I'm doing two sets because mixing negatives with positives hurts to read it.

If these conditions are true 301 to new location. I'm doing two sets because mixing negatives with positives hurts to read it.

If conditions are true 301 to new location.

added 61 characters in body
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15

If any of these conditions are true 301 to new location. I'm doing two sets because mixing negatives with positives hurts to read it.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ "https://example.com/$1" [R=301,L]

RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ "https://example.com/$1" [R=301,L]

If any of these conditions are true 301 to new location.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ "https://example.com/$1" [R=301,L]

If these conditions are true 301 to new location. I'm doing two sets because mixing negatives with positives hurts to read it.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ "https://example.com/$1" [R=301,L]

RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ "https://example.com/$1" [R=301,L]
added 3105 characters in body
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15
Loading
added 22 characters in body
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15
Loading
Formating the aside note on CentOS
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15
Loading
Changed to friendly directory naming and corrections from unfriendly naming, noted another .conf may be involved on this CentOS 8 installation.
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15
Loading
added 261 characters in body
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15
Loading
added 10 characters in body
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15
Loading
added 30 characters in body
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15
Loading
Source Link
Wayne Smith
  • 2.7k
  • 13
  • 15
Loading