Other

#RewriteEngine On ##RewriteCond %{SERVER_PORT} ^443$ ##RewriteCond %{HTTP_HOST} !^(localhost|127.0.0.1) ##RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L] #RewriteBase / #RewriteRule ^index\.php$ – [L] #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule . /index.php [L] #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_URI} !(.*)/$ #RewriteRule ^(.*)$ https://datadesignresources.com/$1/ [L,R=301]

Read More...

Content type name attribute autocomplete attribute Name name fname mname lname name (full name) given-name (first name) additional-name (middle name) family-name (last name) Email email email Address address city region province state zip zip2 postalcountry For one address input: street-address For two address inputs: address-line1 address-line2 address-level1 (state or province) address-level2 (city) postal-code (zip code) country Phone phone mobile country-code area-code exchange suffixext tel Credit Card ccname cardnumber cvc ccmonth ccyear exp-date card-type cc-name cc-number cc-csc cc-exp-month cc-exp-year cc-exp cc-type Usernames username username Passwords password…

Read More...

WWW

Create a 301 redirect forcing all http requests to use either www.example.com or example.com: Example 1 – Redirect example.com to www.example.com: RewriteEngine On RewriteCond %{HTTP_HOST} !^www.example.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] Example 2 – Redirect www.example.com to example.com: RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteRule ^/?$ “http\:\/\/example\.com\/” [R=301,L]

Read More...

Default

RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L]

Read More...

NO HTTPS

RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L] RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

Read More...

HTTPS and WWW Redirection

RewriteCond %{HTTP_HOST} ^www\. [NC,OR] RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L,NE]

Read More...

Force HTTPS

 /opt/bitnami/apache2/conf/bitnami/bitnami.conf, inside the default VirtualHost directive: <VirtualHost _default_:80> DocumentRoot “/opt/bitnami/apache2/htdocs” RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L] … </VirtualHost> Then: Open port 443 in the firewall. Restart Apache.

Read More...

Generate new Key and CSR

Reference: https://docs.bitnami.com/general/components/apache/#How_to_create_a_SSL_certificate.3f Charging domain name: https://www.godaddy.com/help/change-your-domain-name-common-name-9189 cd /opt/bitnami/apache2/conf/ sudo chown bitnami:root /opt/bitnami/apache2/conf/server.key sudo chown bitnami:root /opt/bitnami/apache2/conf/cert.crt sudo chmod 660 /opt/bitnami/apache2/conf/server.key sudo chmod 660 /opt/bitnami/apache2/conf/cert.crt sudo openssl genrsa -out /opt/bitnami/apache2/conf/server.key 2048 sudo openssl req -new -key /opt/bitnami/apache2/conf/server.key -out /opt/bitnami/apache2/conf/cert.csr sudo chown root:root /opt/bitnami/apache2/conf/server.key sudo chown root:root /opt/bitnami/apache2/conf/cert.crt sudo chmod 600 /opt/bitnami/apache2/conf/server.key sudo chmod 600 /opt/bitnami/apache2/conf/cert.crt #ONLY…

Read More...
Do NOT follow this link or you will be banned from the site!
preloader