Skip to content

Instantly share code, notes, and snippets.

@tansautn
Last active May 25, 2017 14:47
Show Gist options
  • Save tansautn/68fadaf28fe998a41fae4de97dc48de1 to your computer and use it in GitHub Desktop.
Save tansautn/68fadaf28fe998a41fae4de97dc48de1 to your computer and use it in GitHub Desktop.
global.php - dpd
<IfModule mod_rewrite.c>
RewriteEngine On
#Base template URL reslove
RewriteCond %{REQUEST_URI} public/frontend/skin/([^/]*)/(.*)$ [OR]
RewriteCond %{REQUEST_URI} frontend/skin/([^/]*)/(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^public/frontend/skin/([^/]*)/(.*)$ public/frontend/skin/default/$2 [L,NC]
# IMPORTANT : The three lines bellow is using for enforce a no-trailing-slash.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} /(.*)/$
RewriteRule ^ /%1 [R=301,L]
# END
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
</IfModule>
<IfModule mod_headers.c>
<FilesMatch ".(eot|otf|svg|ttf|woff|woff2)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
<?php return array (
'module_version' =>
array (
'oldversion' => 'v2.0.0.0',
'version' => 'v2.0.0.3',
'date' => '13-12-2016',
),
'module_setup' =>
array (
'isSetup' => '1',
),
'session' =>
array (
'config' =>
array (
'class' => 'Zend\\Session\\Config\\SessionConfig',
'options' =>
array (
'name' => 'pdp2016',
'cookie_httponly' => true,
'cookie_lifetime' => 3600,
'gc_maxlifetime' => 3600,
'remember_me_seconds' => 3600,
),
'authentication_expiration_time' => 30000,
),
'validators' =>
array (
0 => 'Zend\\Session\\Validator\\RemoteAddr',
1 => 'Zend\\Session\\Validator\\HttpUserAgent',
),
),
'salt' => 'www.magebay.com',
'prefixsku' => 'PDP-',
'typeproduct' => 'pdpro',
'linkpatch' => 'https://productsdesignerpro.com/release/patches/',
'sendmail' =>
array (
'mailFrom' => 'no-reply@example.com',
'senderName' => 'Product Design Pro',
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment