AMH 社区首页
AMH社区 - 开放自由有价值的社区
	
		
    	 | 
	|
|---|---|
| 
	
	 350778665  | 
	
	 
		  350778665 发表于 2014-06-02 11:11:12
	 
	版块页和帖子页伪静态301问题 
	原来我的论坛这样的http://www.dtcylm.com/forum-65-1.html现在伪静态目录化了像做301跳转到http://www.dtcylm.com/jingyan/ 原来的帖子页伪静态http://www.dtcylm.com/thread-5677-1-1.html 301跳转到http://www.dtcylm.com/shenzhen/m5677/ 全站的帖子自动301到新的目录化伪静态有谁知道怎么实现的? 意思是我现在已经做好了目录化伪静态,原来官方默认的伪静态已经不需要了 想做个301跳转到新的伪静态 是这个意思。 三十元付费解决,能帮忙的在此感谢了,新手建站很多都不懂望理解,虽然钱不多但愿能找到解决问题的高手 Apache 虚拟机的 301跳转 RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ 这里是要跳转到新的目录化内容页 [R=301] 规则 RewriteCond %{REQUEST_FILENAME} !-f 
		RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^.*/(.+).php$ $1.php?%1 [R=301] RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^type-(\w+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&typeid=$2&typeid=$2&filter=typeid&page=$3&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^sort-(\w+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&sortid=$2&sortid=$2&filter=sortid&page=$3&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^category-([0-9]+)\.html$ forum.php?gid=$1&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^tag\.html$ misc.php?mod=tag&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^tag-(thread|blog)-([0-9]+)-([0-9]+)\.html$ misc.php?mod=tag&id=$2&type=$1&page=$3&%1 [L] RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^tag-([0-9]+)\.html$ misc.php?mod=tag&id=$1&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(\w+)/m([0-9]+)/([0-9]+)/?$ forum.php?mod=viewthread&tid=$2&extra=page\%3D1&page=$3&%1 [L] RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(\w+)/m([0-9]+)/?$ forum.php?mod=viewthread&tid=$2&extra=page\%3D1&page=1&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(\w+)/([0-9]+)/?$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(\w+)/?$ forum.php?mod=forumdisplay&fid=$1&page=1&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1 
				2014-06-02 11:11:12 1
	 
		
	 | 
	
| 
		
		 
		Kvm  | 
		 手机党围观。。
				 
		
		
		回复 
		2014-06-02 11:14:48 2
		 
				
		 | 
		
| 
		
		 
		350778665  | 
		 我的QQ350778665
				 
		
		
		回复 
		2014-06-02 11:19:29 3
		 
				
		 | 
		
| 
		
		 
		350778665  | 
		 RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ (\w+)/m$1/ [R=301,L] 以上面这样写的话,只能获取帖子ID获取不到版块的IDhttp://www.dtcylm.com/(w+)/m10059/ 
		回复 
		2014-06-02 12:15:55 4
		 
				
		 | 
		
| 
		
		 
		amysql  | 
		 怎么才知道到thread-5677-1-1.html  跳到 jingyan 这个关键字。 
		
		没有特征只能写固定了 
		回复 
		2014-06-06 10:42:20 5
		 
				AMH面板 - 好用高效低占用、安全可靠极稳定  | 
		
 HTTPS
 
			[求助帖]
		付费解决版块页和帖子页伪静态301问题