x
 
Create New Page
 View Previous Changes    ( Last updated by Lisa Wess )

.htaccss Tips & Tricks

Wordpress using this style of .htaccess to re-write index.php into more SEF URL’s.

With EE installed in a subdirectory I needed the wordpress .htaccess to ignore the subfolder where the EE install was so I used the following which works perfectly.

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

# END WordPress 

The other thing was I needed an .htaccess to force SSL.  Now I found you have to change the whole EE to http: or https:  ...  So you have to set the global config and settings in path.php to be https.

This following htaccess flips any page for .http into .https

RewriteEngine On
RewriteCond 
%{HTTPS} !=on
RewriteRule 
.* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] 

Category:EE1 Category:.htaccess

Categories: