AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] lamp环境.htaccess是直接放根目录吗?? |
|
---|---|
风卷 |
风卷 发表于 2014-11-14 14:12:00
还要不要通过amrewrite创建规则。。
现在用LNMP,不知道LAMP是怎么样的。。。求教!!!
点赞,加油! (0分)
2014-11-14 14:12:00 1
|
790797952 |
是的
.................
回复
2014-11-14 14:14:30 2
|
amysql |
回复
2014-11-17 10:35:54 4
AMH面板 - 好用高效低占用、安全可靠极稳定 |
nrtdadmin |
可是我的不行。伪静态规则是 # 将 RewriteEngine 模式打开 RewriteEngine On # 安装目录路径 RewriteBase / # Rewrite 系统规则请勿修改 RewriteRule ^vod-(.*).html$ index.php\?s=/Home-vod-$1 RewriteRule ^User(.*)$ index.php\?s=/User$1 RewriteRule ^vodlist-(.*).html$ index.php\?s=/Home-vod-show-id-$1 RewriteRule ^like$ index.php\?s=/Home-vod-show-id-39 RewriteRule ^like/$ index.php\?s=/Home-vod-show-id-39 RewriteRule ^like/index.html$ index.php\?s=/Home-vod-show-id-39 RewriteRule ^live$ index.php\?s=/Home-vod-show-id-38 RewriteRule ^live/$ index.php\?s=/Home-vod-show-id-38 RewriteRule ^live/index.html$ index.php\?s=/Home-vod-show-id-38 RewriteRule ^zhuanti$ index.php\?s=/Special-show$1 RewriteRule ^zhuanti/$ index.php\?s=/Special-show$1 RewriteRule ^zhuanti/index.html$ index.php\?s=/Special-show$1 RewriteRule ^(.*)/(.*)/(.*)_(.*).html$ index.php\?s=/vod-play-id-$2-sid-$3-pid-$4-listname-$1 RewriteRule ^news-(.*)$ index.php\?s=/Home-news-$1 RewriteRule ^special-(.*)$ index.php\?s=/Home-special-$1 RewriteRule ^search-(.*).html$ index.php\?s=/Home-vod-search-$1 RewriteRule ^top(.*).html$ index.php\?s=/my-show-id-top$1.html RewriteRule ^new(.*).html$ index.php\?s=/my-show-id-new.html RewriteRule ^404(.*).html$ index.php\?s=/my-show-id-404.html RewriteRule ^sitemap(.*).html$ index.php\?s=/my-show-id-sitemap.html RewriteRule ^map/(rss|google|baidu|sitemap).xml$ index.php\?s=/map-show-id-$1-limit-500.html RewriteRule ^baidu(.*).html$ index.php\?s=/map-show-id-baidu-limit-500.html RewriteRule ^tag-(.*)$ index.php\?s=/Home-tag-$1 RewriteRule ^gb-(.*)$ index.php\?s=/User-gb-$1 RewriteRule ^cm-(.*)$ index.php\?s=/Home-cm-$1 RewriteRule ^map-(.*)$ index.php\?s=/Home-map-$1 RewriteRule ^my-(.*)$ index.php\?s=/Home-my-$1 RewriteRule ^Tpl/(.*)/Home/(.*).html$ /404.html ErrorDocument 404 http://www.5hxn.com/404.html #直接访问模版文件返回404 RewriteRule ^Tpl/(.*)/Home/(.*).html$ /404.html RewriteRule ^vod-(.*)$ index.php\?s=/Home-vod-$1 RewriteRule ^Public/setup/play.php(.*)$ Public/setup/play.php$1 [L] RewriteRule ^Public/setup/ff.php(.*)$ Public/setup/ff.php$1 [L] #防止可写入文档执行脚本 注意 请将伪静态文件权限设置为不可写 RewriteRule ^Tpl/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L] RewriteRule ^style/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L] RewriteRule ^static/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L] RewriteRule ^Runtime/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L] RewriteRule ^Rewrite/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L] RewriteRule ^faq/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L] RewriteRule ^Uploads/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L] RewriteRule ^Uploads-s/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L] RewriteRule ^avatar/customavatars/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L] RewriteRule ^avatar/tempUpload/(.*).(php|PHP|Php|pHP|phP|asa|asp|txt|asax|ascx|samx|aspx|cdx|cer|cgi|jsp)$ /404.html [L]
回复
2015-06-13 08:58:55 5
|