WordPress: Redirect HTTP to HTTPS in Apache
- Dec
- 08
- Posted by TKH Specialist
- Posted in apache
To redirect all of your HTTP traffic to HTTPS on WordPress installations using an Apache web server, add the following code to your .htaccess file. This is the recommended method for redirecting WordPress running on Apache. /path/to/your/wordpress/installation/.htaccess RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.url.com/$1 [R=301,L] This should begin to work immediately.
read moreSecure Web Folders
- Feb
- 01
- Posted by TKH Specialist
- Posted in apache, Permissions, Tools
.htaccess Files A .htaccess (dot-htaccess) file contains directives (commands) executed by the server before it delivers files to a browser. Some of the most common use for the .htaccess file is Controlling access to web documents by password or IP address. Scope of the .htacess File If you create a .htaccess file for one of […]
read moreRecent Comments
- Stefan on Flush This!
- Timestamping your Bash History | Matt's Entropy on Remember when you issued that command…?
- Matt Smith on Remember when you issued that command…?
- Ruan on Putting ‘lsof’ to use
- Dylan F. Marquis on External Mapping of LDAP attributes in CAS