majemedia/shared_core_wordpress/master/shared_core/.htaccess - Htaccess File

majemedia/shared_core_wordpress/master/shared_core/.htaccess

# For Redirecting to non-www (or vice versa) you need to always be sure you're checking
# on the HTTP_HOST as a RewriteCond
# Redirect to non-www (generic)
#RewriteEngine On
#RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
#RewriteRule ^(.*)$ http://example.com/$1 [R=301]

# For redirecting non-ssl traffic to ssl traffic you need to always be sure you're checking
# on the HTTP_HOST as a RewriteCond
# Redirect non-ssl to ssl (maje)
#RewriteEngine On
#RewriteCond %{HTTPS} !=on
#RewriteCond %{HTTP_HOST} ^example.com$ [NC]
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REQUEST_FILENAME, REQUEST_URI

Comments

Apache