httpd.ini如何将我这个代码转换成.htaccess 30
原文件如下,程序是PHP的,请高手帮忙处理下,原使用是在windows服务器上可以使用现在换到linux服务器下空间商说需要写.htaccess才可以使用,帮忙处理下了,...
原文件如下,程序是PHP的,请高手帮忙处理下,原使用是在windows服务器上可以使用现在换到linux服务器下空间商说需要写.htaccess才可以使用,帮忙处理下了,最快最准确处理好的给高分奖励,谢谢
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Rewrite规则,针对可操作IIS用户,
# 此默认规则只针对推广程序放在根目录中用独立域名访问的,论坛也可以直接用,论坛根目录要求是:bbs.
RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)\?*(.*)$ $1/bbs/archiver/index\.php\?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/bbs/forumdisplay\.php\?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/bbs/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/bbs/space\.php\?$2=$3&$4
RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/bbs/tag\.php\?name=$2&$3
RewriteRule ^(.*)/uid-([a-z|0-9]+)\.html\?*(.*)$ $1/index\.php\?$2\.html
RewriteRule ^(.*)/index.html\?*(.*)$ $1/index\.php
RewriteRule ^(.*)/login/login.html\?*(.*)$ $1/login/login\.php
RewriteRule ^(.*)/login/reg.html\?*(.*)$ $1/login/reg\.php
RewriteRule ^(.*)/([a-z]+)/uid-([a-z|0-9]+)\.html\?*(.*)$ $1/$2/index\.php\?$3\.html
RewriteRule ^(.*)/([a-z]+)/gametg\.html\?*(.*)$ $1/$2/gametg\.php
RewriteRule ^(.*)/([a-z]+)/([a-z]+)-([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2/$3\.php\?$4-$5-$6\.html
RewriteRule ^(.*)/([a-z]+)/([a-z]+)-([0-9]+)-([0-9]*)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2/$3\.php\?$4-$5-$6-$7\.html
RewriteRule ^(.*)/([a-z|A-Z]+)/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2/show_$2\.php\?$3-$4-$5\.html 展开
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Rewrite规则,针对可操作IIS用户,
# 此默认规则只针对推广程序放在根目录中用独立域名访问的,论坛也可以直接用,论坛根目录要求是:bbs.
RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)\?*(.*)$ $1/bbs/archiver/index\.php\?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/bbs/forumdisplay\.php\?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/bbs/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/bbs/space\.php\?$2=$3&$4
RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/bbs/tag\.php\?name=$2&$3
RewriteRule ^(.*)/uid-([a-z|0-9]+)\.html\?*(.*)$ $1/index\.php\?$2\.html
RewriteRule ^(.*)/index.html\?*(.*)$ $1/index\.php
RewriteRule ^(.*)/login/login.html\?*(.*)$ $1/login/login\.php
RewriteRule ^(.*)/login/reg.html\?*(.*)$ $1/login/reg\.php
RewriteRule ^(.*)/([a-z]+)/uid-([a-z|0-9]+)\.html\?*(.*)$ $1/$2/index\.php\?$3\.html
RewriteRule ^(.*)/([a-z]+)/gametg\.html\?*(.*)$ $1/$2/gametg\.php
RewriteRule ^(.*)/([a-z]+)/([a-z]+)-([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2/$3\.php\?$4-$5-$6\.html
RewriteRule ^(.*)/([a-z]+)/([a-z]+)-([0-9]+)-([0-9]*)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2/$3\.php\?$4-$5-$6-$7\.html
RewriteRule ^(.*)/([a-z|A-Z]+)/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2/show_$2\.php\?$3-$4-$5\.html 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询