1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/3.0/modules/remote/patches/htaccess.patch
2011-06-20 15:59:58 +02:00

22 lines
702 B
Diff

diff --git a/.htaccess b/.htaccess
index d255efa..68b66bb 100644
--- a/.htaccess
+++ b/.htaccess
@@ -22,6 +84,16 @@
SecFilterScanPOST Off
</IfModule>
+# URL rewriting for Gallery Remote
+<IfModule mod_rewrite.c>
+ Options +FollowSymLinks
+ RewriteEngine On
+ RewriteBase /gallery/
+ ErrorDocument 404 default
+ RewriteRule ^main.php(.*)$ / [QSA,L,R=404]
+ RewriteRule ^gallery_remote2.php(.*)$ index.php?kohana_uri=/gallery_remote$1 [QSA,PT,L]
+</IfModule>
+
# Increase security by uncommenting this block. It keeps browsers
# from seeing support files that they shouldn't have access to. We
# comment this out because Apache2 requires some minor configuration