Module DigressivePrice
This commit is contained in:
41
.well-known/web/.htaccess
Normal file
41
.well-known/web/.htaccess
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
RewriteOptions inherit
|
||||
Options +FollowSymlinks -Indexes
|
||||
|
||||
AddDefaultCharset UTF-8
|
||||
|
||||
# If you defined a CDN that is an alias of your shop domaine, be sure to uncomment this line, and change "*" by your
|
||||
# shop hostname. For example, if your shop hostname is www.theshop.tld, use : Header set Access-Control-Allow-Origin "www.theshop.tld".
|
||||
# You may also use Access-Control-Allow-Origin "*" to allow all origins.
|
||||
#Header set Access-Control-Allow-Origin "*"
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
# SEO, remove the subdomain www in URL
|
||||
# Exemple : http://www.yourdomain.com/contact redirect 301 to http://yourdomain.com/contact
|
||||
# To activate uncomment the following two lines
|
||||
#RewriteCond %{HTTP_HOST} ^www.yourdomain.com$
|
||||
#RewriteRule ^(.*) http://yourdomain.com/$1 [QSA,L,R=301]
|
||||
|
||||
# SEO, add the subdomain www in URL
|
||||
# Exemple : http://yourdomain.com/contact redirect 301 to http://www.yourdomain.com/contact
|
||||
# To activate uncomment the following two lines
|
||||
#RewriteCond %{HTTP_HOST} ^yourdomain.com$
|
||||
#RewriteRule ^(.*) http://www.yourdomain.com/$1 [QSA,L,R=301]
|
||||
|
||||
# SEO, to avoid duplicate content with index.php in url
|
||||
# Exemple : http://www.yourdomain.com/index.php/contact redirect 301 to http://www.yourdomain.com/contact
|
||||
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
|
||||
RewriteRule (.?)index\.php/(.*) /$1$2 [R=301,NE,L]
|
||||
|
||||
# If thelia is installed in a subdirectory (e.g., thelia2)
|
||||
# define the RewriteBase below to get a proper URL rewriting
|
||||
# RewriteBase /thelia2
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]
|
||||
</IfModule>
|
||||
BIN
.well-known/web/favicon.ico
Normal file
BIN
.well-known/web/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
40
.well-known/web/index.php
Normal file
40
.well-known/web/index.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
use Thelia\Core\Thelia;
|
||||
use Thelia\Core\HttpFoundation\Request;
|
||||
use Thelia\Core\HttpKernel\HttpCache\HttpCache;
|
||||
use Symfony\Component\Dotenv\Dotenv;
|
||||
|
||||
$env = 'prod';
|
||||
$loader = require __DIR__ . '/../core/vendor/autoload.php';
|
||||
|
||||
if (file_exists(THELIA_ROOT.'.env')) {
|
||||
(new Dotenv())->load(THELIA_ROOT.'.env');
|
||||
}
|
||||
|
||||
$request = Request::createFromGlobals();
|
||||
|
||||
$thelia = new Thelia("prod", false);
|
||||
|
||||
if (PHP_VERSION_ID < 70000) {
|
||||
$thelia->loadClassCache();
|
||||
}
|
||||
|
||||
//$thelia = new HttpCache($thelia);
|
||||
|
||||
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
|
||||
//Request::enableHttpMethodParameterOverride();
|
||||
|
||||
$response = $thelia->handle($request)->prepare($request)->send();
|
||||
|
||||
$thelia->terminate($request, $response);
|
||||
45
.well-known/web/index_dev.php
Normal file
45
.well-known/web/index_dev.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
use Thelia\Core\Thelia;
|
||||
use Thelia\Core\HttpFoundation\Request;
|
||||
use Thelia\Core\HttpKernel\HttpCache\HttpCache;
|
||||
use Symfony\Component\Dotenv\Dotenv;
|
||||
|
||||
$env = 'dev';
|
||||
require __DIR__ . '/../core/vendor/autoload.php';
|
||||
|
||||
if (file_exists(THELIA_ROOT.'.env')) {
|
||||
(new Dotenv())->load(THELIA_ROOT.'.env');
|
||||
}
|
||||
|
||||
// List of allowed IP
|
||||
$trustedIp = array(
|
||||
'::1',
|
||||
'127.0.0.1',
|
||||
);
|
||||
|
||||
$request = Request::createFromGlobals();
|
||||
|
||||
if (false === in_array($request->getClientIp(), $trustedIp)) {
|
||||
header('HTTP/1.0 403 Forbidden');
|
||||
exit('You are not allowed to access this file.');
|
||||
}
|
||||
|
||||
$thelia = new Thelia("dev", true);
|
||||
|
||||
if (PHP_VERSION_ID < 70000) {
|
||||
$thelia->loadClassCache();
|
||||
}
|
||||
|
||||
$response = $thelia->handle($request)->prepare($request)->send();
|
||||
$thelia->terminate($request, $response);
|
||||
11
.well-known/web/robots.txt
Normal file
11
.well-known/web/robots.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
# robots.txt for Thelia 2 (E-Commerce solution)
|
||||
# @url: http://www.yourdomain.com
|
||||
|
||||
User-agent: *
|
||||
Disallow: /admin
|
||||
Disallow: /cart/
|
||||
Disallow: /cart$
|
||||
Disallow: /cart?
|
||||
Disallow: /404
|
||||
|
||||
#Sitemap: http://www.yourdomain.com/sitemap
|
||||
Reference in New Issue
Block a user