Preferred Domain Setting Module for OXID eShop Community Edition
This module ensures that only the preferred domain callable. The other domain variants are forwarded.
Feature
Set your preferred Domain in config.inc.php and save your preferred Domain in Module Settings.
Recommended
I recommended to use SSL Protocol. In consequence this Module only provided SSL Protocol.
Possible Domains Variants
This Module set your preferred Domain and for the other three Domains set a permanently Redirection with 301 HTTP-Status.
Requirements
- OXID eShop Community Edition Version 6 or higher
- Access via Console possible
- Composer is installed on your Server
Preparation Configuration
Set your preferred Domain in config.inc.php for both config variables.
Hint remember to change the file permissions to edit the file.
chmod 666 config.inc.php$this->sShopURL = 'https://www.example.com'; // eShop base url, required
$this->sSSLShopURL = 'https://www.example.com'; // eShop SSL url, optionalchmod 444 config.inc.phpClear your tmp Directory.
Module Installation via Composer
- Login via SSH and change to Shop Root Directory
- Register the Module via Composer
- Login into Shop Admin Backend
- Activate Preferred Domain Module
- See your preferred Domain in the Module Setting Tab
- Select the shown preferred Domain and use Save Button (required)
Composer Install Command
composer require --no-update bisweb/preferreddomain:v1.0.0
composer update --no-dev