AMH 社区首页
AMH社区 - 开放自由有价值的社区
	
		
    	 | 
	|
|---|---|
| 
	
	 mgy92755  | 
	
	 
		  mgy92755 发表于 2014-07-05 14:01:08
	 
	我的.htaccess的資料,請問如何寫成AMRewrite的規則,新手請教各位大大 謝謝 
	## Uncomment (remove # ONLY NOT ##) line below if installed in folder and add folder name after / ## Example: Script is installed in /public_html/short/ then it should be: Rewritebase /short ## Then the files below should be (add slash to all): /index.php?action=$1 ## Uncomment the code below to Use PHP 5.4 # AddHandler application/x-httpd-php54 .php #Options -MultiViews RewriteEngine On ## Uncomment the following line to use the multi-domain feature # RewriteCond %{HTTP_HOST} ^yourseconddomain\.com$ [NC] # RewriteRule ^(.*)$ http://yourfirstdomain.com/$1 [R=301,L] #Rewritebase / ## Admin Panel RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^admin/(.*)?$ admin/index.php?a=$1 [QSA,NC,L] ## Sitemap ### RewriteRule ^sitemap.xml$ sitemap.php ## Application Handler RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)?$ index.php?a=$1 [QSA,NC,L] ## Error 404 ## ErrorDocument 404 /index.php?a=404 
				2014-07-05 14:01:08 1
	 
		
	 | 
	
| 
		
		 
		amysql  | 
		 .htaccess 在线 转nginx伪静态 
		
		http://amysql.com/bbs/forum.php?mod=viewthread&tid=3111&fromuid=2 
		回复 
		2014-07-07 10:23:29 2
		 
				AMH面板 - 好用高效低占用、安全可靠极稳定  | 
		
 HTTPS
 
			[求助帖]
		關於AMRewrite規則