temtem Đăng vào 15-5-2014 10:59:04

PHPdisk English Version 7 - quản lý chia sẻ files.

PHPdisk là một tiện ích phát triển trên ngôn ngữ PHP, cho phép người dùng quản lý dữ liệu ( upload,download) chia sẻ trên mạng, tạo mã PIN chia sẻ với bạn bè.

Download : PHPdisk phiên bản tiếng Anh ( English version 7.0)
phpdisk-v7-en.zip
Demo: http://fs.netdepviet.org

temtem Đăng vào 1-11-2016 14:17:35

SEO Rewrite URL for PHPdisk 7.0Trên Apache
RewriteEngine On

RewriteRule ^file-(+)\.html$ viewfile.php?file_id=$1&file_key=$2
RewriteRule ^viewfile-(+)-(*)\.html$ downfile.php?action=view&file_id=$1&file_key=$2
RewriteRule ^downfile-(+)-(*)\.html$ downfile.php?file_id=$1&file_key=$2
RewriteRule ^space-(.+)\.html$ space.php?username=$1
Trên IIS:



# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule ^(.*)/file-(+)\.html$ $1/viewfile\.php\?file_id=$2
RewriteRule ^(.*)/downfile-(+)\.html$ $1/downfile\.php\?file_id=$2
RewriteRule ^(.*)/space-(.+)\.html$ $1/space\.php\?username=$2
RewriteRule ^(.*)/public-(+)-(+)\.html$ $1/public\.php\?pid=$2&cate_id=$3
RewriteRule ^(.*)/public\.html$ $1/public\.php

Trên nginx

rewrite ^(.*)/file-(+)\.html$ $1/viewfile.php?file_id=$2 last;
rewrite ^(.*)/downfile-(+)\.html$ $1/downfile.php?file_id=$2 last;
rewrite ^(.*)/space-(.+)\.html$ $1/space.php?username=$2 last;
rewrite ^(.*)/public-(+)-(+)\.html$ $1/public.php?pid=$2&cate_id=$3 last;
rewrite ^(.*)/public\.html$ $1/public.php last;
Trang: [1]
Xem phiên bản đầy đủ: PHPdisk English Version 7 - quản lý chia sẻ files.