From c3075d81815ee059658e5cd29ef849ab194ef0fa Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Fri, 1 Jan 2010 21:58:07 -0800
Subject: Add a code block showing how to add a mod_rewrite block to the old
Gallery2 install to redirect urls to Gallery 3.
---
modules/g2_import/views/admin_g2_import.html.php | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
(limited to 'modules')
diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php
index 9a5e3f05..5bac9e9e 100644
--- a/modules/g2_import/views/admin_g2_import.html.php
+++ b/modules/g2_import/views/admin_g2_import.html.php
@@ -26,6 +26,7 @@
+
= $form ?>
if (g2_import::is_initialized()): ?>
@@ -91,6 +92,21 @@
+
+
+
= t("Migrating from Gallery 2") ?>
+
+ = t("Once your migration is complete, put this block at the top of your gallery2/.htaccess file and all Gallery 2 urls will be redirected to Gallery 3") ?>
+
+
+
+ <IfModule mod_rewrite.c>
+ RewriteEngine On
+ RewriteBase = g2_import::$g2_base_url ?>
+ RewriteRule ^(.*)$ = url::site("g2/map?path=\$1") ?> [QSA,L]
+ </IfModule>
+
+
endif ?>
--
cgit v1.2.3