【如内容违法或虚假,请联系上述邮件删除】网站在根目录的话是正常的。
但是我放在二级目录 zx/ 里面
但是访问 www.xxx.com/zx 总是跳到根目录的网址。
假如把.htaccess 删除 就提示无法访问。
应该是伪静态规则需求更改途径。 请问下如何修正。万分感激
根目录是dz程序
/zx 二级目录是supesite程序
下面是完好原来supesite的伪静态规则。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond % !^$
RewriteRule data/(.*).(php)$ – [F]
RewriteRule cache/(.*).(php)$ – [F]
RewriteRule attachments/(.*).(php)$ – [F]
RewriteRule themes/(.*).(html)$ – [F]
RewriteRule ^index\.html$ /index.php [NC,L]
RewriteRule ^top-([a-z]+)$ /index\.php\?action/channel/name/$1 [NC,L]
RewriteRule ^qqlevel-([0-9]+).html /index\.php\?action/channel/name/qqlevel/uin/$1 [L]
RewriteRule ^qqmusic-([0-9]+).html /index\.php\?action/channel/name/qqmusic/uin/$1 [L]
RewriteRule ^friend-([0-9]+).html /index\.php\?action/channel/name/friend/uin/$1 [L]
RewriteRule ^category(.+)$ /index\.php\?action/category/catid$1 [L]
RewriteRule ^viewnews(.+)$ /index\.php\?action/viewnews/itemid$1 [L]
RewriteRule ^action(.+)$ /index\.php\?action$1 [L]
RewriteRule ^jdyl/type/([0-9]+)/([0-9]+).html /index\.php\?action/channel/name/jdyl/type/$1/id/$2 [L]
RewriteRule ^niandu/2015/$ /niandu\.php\?y2015 [L]
RewriteRule ^qqgujia-([0-9]+).html /index\.php\?action/channel/name/qqgujia/uin/$1 [L]
RewriteRule ^/([0-9]+)$ /index\.php\?uid/$1 [L]
RewriteRule ^/([0-9]+)/spacelist(.+)$ /index\.php\?uid/$1/action/spacelist/type$2 [L]
RewriteRule ^/([0-9]+)/viewspace(.+)$ /index\.php\?uid/$1/action/viewspace/itemid$2 [L]
RewriteRule ^/([0-9]+)/viewbbs(.+)$ /index\.php\?uid/$1/action/viewbbs/tid$2 [L]
#RewriteRule ^/([0-9]+)/(.*)$ /index\.php\?uid/$1/$2 [L]
#RewriteRule ^/viewthread(.+)$ /index\.php\?action/viewthread/tid$1 [L]
#RewriteRule ^/mygroup(.+)$ /index\.php\?action/mygroup/gid$1 [L]
#RewriteRule ^/play-([0-9]+)-(.+)$ /index\.php\?action/channel/name/play/uin/$1/id/$2 [L]
#RewriteRule ^/kjlevel-([0-9]+).html /index\.php\?action/channel/name/kjlevel/uin/$1 [L]
#RewriteRule ^/hzlevel-([0-9]+).html /index\.php\?action/channel/name/hzlevel/uin/$1 [L]
#RewriteRule ^/qqmood-(.+)$ /index\.php\?action/channel/name/qqmood/uin/$1 [L]
#RewriteRule ^/qqphoto-([0-9]+).html /index\.php\?action/channel/name/qqphoto/uin/$1 [L]
#RewriteRule ^/qqhot-([0-9]+).html /index\.php\?action/channel/name/qqhot/uin/$1 [L]
#RewriteRule ^/qqpet-([0-9]+).html /index\.php\?action/channel/name/qqpet/uin/$1 [L]
#RewriteRule ^/profile-(.+)$ /index\.php\?action/channel/name/profile/uin/$1 [L]
#RewriteRule ^/uplevel-(.+)$ /index\.php\?action/channel/name/uplevel/uin/$1 [L]
#RewriteRule ^/qqphoto-([0-9]+)-(.+)-([0-9]+).html /index\.php\?action/channel/name/qqphoto/uin/$1/id/$2/type/$3 [L]
#RewriteRule ^/qqphoto-([0-9]+)-(.+).html /index\.php\?action/channel/name/qqphoto/uin/$1/id/$2 [L]
#RewriteRule ^/gj([0-9]+).jpg /qqphoto/\?pid=$1 [L]
</IfModule>(关注老榕树网络旗下“网络思维”微信公众号:wlsw360 (每天都有好文章)
本帖如有虚假或违法,请联系邮箱删除,本社区删贴不收任何费用,欢迎举报。老榕树社区属老榕树网络旗下网站,旨在为老榕树用户提供创业咨询、网站建设技术交流、源码下载、提供各种实用工具。如有部分帖子涉及违法、虚假,请你第一时间与社区联系,把需要删除的社区链接提供给我们,我们核实之后,第一时间删除。邮箱:125175998@qq.com |