# kong-plugin-http301https **Repository Path**: luckytodwt/kong-plugin-http301https ## Basic Information - **Project Name**: kong-plugin-http301https - **Description**: kong http转https - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-16 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Kong plugin http301https ==================== A simple kong plugin that 301 redirect http request to https version, for example: if your user visit your site with http: ``` http://www.example.com/xxx.php?a=b ``` this plugin will redirect to: ``` https://www.example.com/xxx.php?a=b ``` ### How to use 1. clone the code: ``` git clone git@github.com:pocketdigi/kong-plugin-http301https.git ``` 2. install ``` cd kong-plugin-http301https luarocks make ``` 3. Edit /etc/kong/kong.conf, uncomment`plugins = bundled` add http301https ``` plugins = bundled,http301https ``` 4. Restart kong 5. Add plugin to your service