宇宙主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

欧基零壹微头条IP归属甄别会员请立即修改密码
查看: 2557|回复: 4

[Windows VPS] 求chevereto在apache下的rewrite规则

[复制链接]
发表于 2015-5-16 11:36:06 | 显示全部楼层 |阅读模式
10金钱
找了个开心版,但是由于空间原因,程序无法自动创建rewrite,所以求一个完整的apache下chevereto的rewrtie规则
发表于 2015-5-16 11:36:07 | 显示全部楼层
creeper 发表于 2015-5-16 13:20
开心版忘了提供了,有的话分享一下呗
  1. # Disable server signature
  2. ServerSignature Off

  3. # Disable directory listing (-indexes), Multiviews (-MultiViews) and enable Follow system links (+FollowSymLinks)
  4. Options -Indexes
  5. Options -MultiViews
  6. Options +FollowSymLinks

  7. <IfModule mod_rewrite.c>

  8.         RewriteEngine On
  9.        
  10.         # If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
  11.         # You will also have to change the path to reflect the path to your Chevereto installation
  12.         # If you are using alias is most likely that you will need this.
  13.         #RewriteBase /
  14.        
  15.         # 404 images
  16.         # If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines
  17.         # Make sure to apply the correct paths to reflect your current installation
  18.         RewriteCond %{REQUEST_FILENAME} !-f
  19.         RewriteRule images/.+\.(gif|jpe?g|png|bmp) - [NC,L,R=404]
  20.         #RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/images/system/404.gif [NC,L]

  21.         RewriteCond %{REQUEST_FILENAME} !-f
  22.         RewriteCond %{REQUEST_FILENAME} !-d
  23.         RewriteCond %{REQUEST_URI} !\.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpe?g|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
  24.         RewriteRule . index.php [L]
  25.        
  26. </IfModule>
复制代码
 楼主| 发表于 2015-5-16 12:03:04 | 显示全部楼层
没人玩这个吗?
发表于 2015-5-16 12:55:04 | 显示全部楼层
程序目录下不是自带有 .htaccess 么         
 楼主| 发表于 2015-5-16 13:20:51 | 显示全部楼层
a1507965 发表于 2015-5-16 12:55
程序目录下不是自带有 .htaccess 么

开心版忘了提供了,有的话分享一下呗
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|宇宙主机交流论坛

GMT+8, 2024-10-30 13:37 , Processed in 0.283463 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表