AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 各位高手们,走过路过进来看看,菜鸟需要您的帮助 |
|
---|---|
gxbs |
gxbs 发表于 2014-04-23 16:36:01
本帖最后由 gxbs 于 2014-4-23 16:40 编辑
各位高手帮帮我,小弟我刚刚接触Nginx不会改Nginx Rewrite,弄了一天了也没出个结果,哎!有谁知道什么改的帮帮我将Apache Rewrite伪静态规则转换为Nginx Rewrite,小弟我在此先谢了! 引用: # Helicon ISAPI_Rewrite configuration file # Version 3.1.0.104 RewriteEngine On RewriteCompatibility2 On RepeatLimit 32 RewriteBase # unsupported directive: # 3600 = 1 hour # unsupported directive: CacheClockRate 3600 RewriteCond %{HTTP_HOST} ^123.com$ [NC] RewriteRule ^(.*)$ http://www.123.com$1 [L,R=301] # Protect httpd.ini and httpd.parse.errors files # from accessing through HTTP RewriteRule ^/joke-(\d+)(.*?)$ /index.php\/Index\/index\/p\/$1 [NC,L] RewriteRule ^/joke-(\d+)(.*?)$ /index.php\/Index\/index\/p\/$1 [NC,L] RewriteRule ^/(\d+)(.*?)$ /index.php\/Index\/article\/id\/$1 [NC,L] RewriteRule ^/article\/(\d+)(.*?)$ /index.php\/Index\/article\/id\/$1 [NC,L] RewriteRule ^/history$ /index.php\/Time\/history [NC,L] RewriteRule ^/history/(\d+)$ /index.php\/Time\/history\/$1 [NC,L] RewriteRule ^/best$ /index.php\/Index\/best [NC,L] RewriteRule ^/best-(\d+).html$ /index.php\/Index\/best\/p\/$1 [NC,L] RewriteRule ^/day-(\d+).html$ /index.php\/Index\/day\/p\/$1 [NC,L] RewriteRule ^/day$ /index.php\/Index\/day [NC,L] RewriteRule ^/week-(\d+).html$ /index.php\/Index\/week\/p\/$1 [NC,L] RewriteRule ^/month-(\d+).html$ /index.php\/Index\/month\/p\/$1 [NC,L] RewriteRule ^/week$ /index.php\/Index\/week [NC,L] RewriteRule ^/month$ /index.php\/Index\/month [NC,L] RewriteRule ^/ticket(.*?)$ /index.php\/Article\/ticket$1 [NC,L] RewriteRule ^/list-(\d+)$ /index.php\/Index\/list\/pid\/$1 [NC,L] RewriteRule ^/user/(\d+)$ /index.php\/User\/Index\/index\/uid\/$1 [NC,L] RewriteRule ^/add$ /index.php\/Article\/add [NC,L] RewriteRule ^/list-(\d+)-(\d+).html$ /index.php\/Index\/list\/pid\/$1\/p\/$2 [NC,L] RewriteRule ^/tag-(.*?).html$ /index.php\/Index\/tag\/name\/$1 [NC,L] RewriteRule ^/taglist-(.*?)-(\d+).html$ /index.php\/Index\/tag\/name\/$1\/p\/$2 RewriteRule ^/tags$ /index.php\/Index\/tags [NC,L] RewriteRule ^/user/Publish.htm$ /index.php\/Index\/add [NC,L] RewriteRule ^/user/reg.htm$ /index.php\/User\/Index\/reg [NC,L] RewriteRule ^/user/login.htm$ /index.php\/User\/Index\/login [NC,L] RewriteRule ^/about.html$ /index.php\/Index\/page\/id\/2 [NC,L] RewriteRule ^/job.html$ /index.php\/Index\/page\/id\/1 [NC,L]
点赞,加油! (0分)
2014-04-23 16:36:01 1
|
Captain |
楼主用的是什么网站程序?
回复
2014-04-25 07:28:12 2
|
amysql |
.htaccess 在线 转nginx伪静态
http://amysql.com/bbs/forum.php?mod=viewthread&tid=221&fromuid=2 在线转转再改改
回复
2014-04-25 13:00:01 3
AMH面板 - 好用高效低占用、安全可靠极稳定 |
gxbs |
引用: 在发这个求助帖之前,已经试过了,未能解决我的问题,哎!
回复
2014-05-02 17:21:20 4
|
gxbs |
回复
2014-05-02 17:21:59 5
|
Captain |
回复
2014-05-03 21:42:13 6
|
gxbs |
唉, 可怜的是官方的人早已不知去向 , 当初买的是商业程序,付完帐之后用起来比开源程序惨!
回复
2014-05-04 23:34:59 7
|
Captain |
方便pm或者加我qq提供下权限,我帮你修改试试
回复
2014-05-05 01:41:09 8
|
gxbs |
回复
2014-05-06 01:38:46 9
|
Captain |
回复
2014-05-07 02:32:36 10
|