danbd/redirect
Composer 安装命令:
composer create-project danbd/redirect
包简介
README 文档
README
URL redirector using Redis key-value database and Apache Server with htaccess
Any URL redirected by the htaccess file to the will be checked by redis if there is a corresponding value, if any, will redirect the visitor to the URL specified in the database.
Configuring
Redis
If it is not installed, first you need to install the Redis database. You can find instructions on how to do it on the official website/.
In Debian/Ubuntu run the command:
sudo apt install redis-server
Htaccess
The .htaccess file must be enabled in the Apache settings/
The file should look like this:
RewriteEngine on
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-l
RewriteRule ^(.*)$ index.php?url=$1 [NC]
If the project is not in the root folder of the domain, you need to add the path to the file:
RewriteRule ^(.*)$ project/index.php?url=$1 [NC]
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-04-25