View index.html
<!-- INTRO --> | |
<div class="index-intro"> | |
<div class='index-intro-text'> | |
<h1>The Ultimate Photo Gallery Website</h1> | |
<h2>X3 is a complete photo gallery website for photographers and artists. Designed to look amazing on all devices, X3 comes loaded with features!</h2> | |
</div> | |
<div class="index-intro-image"> | |
<picture> | |
<source srcset="{{files}}/images/x3-photo-gallery.webp 1x, {{files}}/images/x3-photo-gallery-2x.webp 2x" media="(max-width: 535px)" type="image/webp"> |
View get_domain.php
<?php | |
function get_domain($host){ | |
$myhost = strtolower(trim($host)); | |
$count = substr_count($myhost, '.'); | |
// www.(domain.com) || (domain.co.uk) || sub.(domain.com) | |
if($count === 2){ | |
if(strlen(explode('.', $myhost)[1]) > 3) $myhost = explode('.', $myhost, 2)[1]; |
View hiawatha.conf
UrlToolkit { | |
ToolkitID = imagevuex3test | |
# Deny access to config and _cache folder | |
Match ^/test/(config|_cache) DenyAccess | |
# No rewrite for existing files | |
RequestURI isfile Return | |
# Rewrite any calls to html|json|xml|atom|rss if a folder matching * exists |
View .htaccess
# Deny access to all files in folder | |
<IfModule mod_authz_core.c> | |
Require all denied | |
</IfModule> | |
<IfModule !mod_authz_core.c> | |
Order deny,allow | |
Deny from all | |
</IfModule> |
View lighttpd.conf
# Rewrite any calls to html|json|xml|atom|rss if a folder matching * exists | |
url.rewrite-if-not-file = ( | |
"(.+)\.(html|json|xml|atom|rss)$" => "$1/" | |
) | |
# Rewrite any calls to /render to the X3 image resizer | |
url.rewrite-once = ( | |
"^render/." => "app/parsers/slir/" | |
) |
View nginx.conf
server { | |
# Basic NGINX site setup | |
listen 80; | |
server_name yourwebsite.com; | |
# Location where X3 is installed | |
root /var/www/yourwebsite; | |
# index.php as index |
View .htaccess
# --------------------------------------------------------------------------- | |
# X3 REQUIRED | |
# Below rewrite rules are strictly required by X3 for pages to work properly. | |
# --------------------------------------------------------------------------- | |
<IfModule mod_rewrite.c> | |
# RewriteEngine enabled | |
RewriteEngine on |
View .htaccess
# --------------------------------------------------------------------------- | |
# X3 REQUIRED | |
# Below rewrite rules are strictly required by X3 for pages to work properly. | |
# Add custom rules inside "# custom rules start" and "# custom rules end" tags. | |
# --------------------------------------------------------------------------- | |
<IfModule mod_rewrite.c> | |
# RewriteEngine enabled |
View httpd.conf
# X3 extended Apache configuration example similar to what we use on our own Apache hosting. | |
# Some of the non-X3-specific rules may already be applied to your server by default. | |
# Find more standard Apache default here: https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess | |
# Redirect non-SSL requests (both www and non-www) to HTTPS website [OPTIONAL] | |
<VirtualHost *:80> | |
ServerName yourwebsite.com | |
ServerAlias www.yourwebsite.com | |
Redirect permanent / https://yourwebsite.com/ |
View httpd.conf
# Basic X3 Apache config file (minimum requirements). | |
<VirtualHost *:80 *:443> | |
# Set serverName and DocumentRoot | |
ServerName yourwebsite.com | |
DocumentRoot /var/www/yourwebsite | |
# X3 specific rules applied relative to X3 root directory |
NewerOlder