From 376af28336870450e1e0f3a818a29fb80c7722b5 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Wed, 13 Feb 2013 03:44:36 -0500 Subject: [PATCH] update links and .htaccess for SSL --- .htaccess | 2 ++ view/archive.php | 3 ++- view/comment.php | 5 +++++ view/note.php | 3 ++- view/page.php | 3 ++- view/rss.php | 4 ++-- 6 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 view/comment.php diff --git a/.htaccess b/.htaccess index dc5f0ab..1793730 100644 --- a/.htaccess +++ b/.htaccess @@ -4,6 +4,8 @@ ErrorDocument 404 /404.php RewriteEngine on RewriteRule ^resume$ /res.pdf [L] +RewriteCond %{HTTPS} off +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteRule ^notes/rss/?$ /index.php?rss=true [L] diff --git a/view/archive.php b/view/archive.php index 073c65f..4231b17 100644 --- a/view/archive.php +++ b/view/archive.php @@ -22,8 +22,9 @@ SyntaxHighlighter.all(); } - + + diff --git a/view/comment.php b/view/comment.php new file mode 100644 index 0000000..44f62fd --- /dev/null +++ b/view/comment.php @@ -0,0 +1,5 @@ +comment as $comment) { + //echo '

' . $comment['text'] . '

'; + } +?> diff --git a/view/note.php b/view/note.php index 367b334..36a3dd2 100644 --- a/view/note.php +++ b/view/note.php @@ -22,8 +22,9 @@ SyntaxHighlighter.all(); } - + + diff --git a/view/page.php b/view/page.php index 72d5edd..10de5f4 100644 --- a/view/page.php +++ b/view/page.php @@ -22,8 +22,9 @@ SyntaxHighlighter.all(); } - + + diff --git a/view/rss.php b/view/rss.php index 7d0c60c..a2ac042 100644 --- a/view/rss.php +++ b/view/rss.php @@ -1,9 +1,9 @@ dylansserver.com/notes/rss - http://dylansserver.com/notes + https://dylansserver.com/notes dylansserver.com/notes/rss - + items as $item) { echo ""; -- 2.30.2