[Smartupload-svn] [153] "/" を補完

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2012年 7月 9日 (月) 00:21:08 JST


Revision: 153
          http://sourceforge.jp/projects/smartupload/scm/svn/commits/153
Author:   hryksbt
Date:     2012-07-09 00:21:08 +0900 (Mon, 09 Jul 2012)
Log Message:
-----------
"/"を補完

Modified Paths:
--------------
    trunk/src/Practice/.htaccess
    trunk/src/Practice/app/webroot/.htaccess

-------------- next part --------------
Modified: trunk/src/Practice/.htaccess
===================================================================
--- trunk/src/Practice/.htaccess	2012-07-08 15:06:50 UTC (rev 152)
+++ trunk/src/Practice/.htaccess	2012-07-08 15:21:08 UTC (rev 153)
@@ -2,4 +2,7 @@
    RewriteEngine on
    RewriteRule    ^$ app/webroot/    [L]
    RewriteRule    (.*) app/webroot/$1 [L]
+   RewriteCond %{REQUEST_URI} !/$
+   RewriteCond %{REQUEST_URI} !\.[^/\.]+$
+   RewriteRule .* %{REQUEST_URI}/ [L,R]
 </IfModule>
\ No newline at end of file

Modified: trunk/src/Practice/app/webroot/.htaccess
===================================================================
--- trunk/src/Practice/app/webroot/.htaccess	2012-07-08 15:06:50 UTC (rev 152)
+++ trunk/src/Practice/app/webroot/.htaccess	2012-07-08 15:21:08 UTC (rev 153)
@@ -1,6 +1,6 @@
 <IfModule mod_rewrite.c>
     RewriteEngine On
-    RewriteCond %{REQUEST_FILENAME} !-d
-    RewriteCond %{REQUEST_FILENAME} !-f
-    RewriteRule ^(.*)$ index.php [QSA,L]
+	RewriteCond %{REQUEST_URI} !/$
+	RewriteCond %{REQUEST_URI} !\.[^/\.]+$
+	RewriteRule ^(.*)$ $1/ [R=301,L]
 </IfModule>



Smartupload-svn メーリングリストの案内
Back to archive index