Author Archives: admin

MODX Force SSL On A Specific Page

Add the below as a snippet, and include it BEFORE any output can happen on the page. ?View Code PHP<?php if($_SERVER["HTTPS"] != "on") { header("HTTP/1.1 301 Moved Permanently"); header("Location: https://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); exit(); } ?>

mod_rewrite to force www redirect index.php to domain

Here is a quick mod_rewrite example that forces www and redirects index.php to / (this fixes two canonicalization issues at one time). ?View Code PHPRewriteEngine on RewriteCond %{HTTP_HOST} !^www.site.com$ RewriteRule ^/(.*)$ http://www.site.com/$1 [R=301] RewriteRule ^/index\.php$ http://www.site.com/ [R=301,L]

Old Lady With Bag On Her Head

Old lady with bag on her head…. The crux of the whole thing is that she has an umbrella in her hand.. so why the bag old lady? Why??!!