summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-01 21:58:07 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-01 21:58:07 -0800
commitc3075d81815ee059658e5cd29ef849ab194ef0fa (patch)
treec56b1208cbd3cfffa37a0897b7d100d8aeece0bc /modules
parent80e35affcb20e9ec1ded7ae2e750444718f8bffe (diff)
Add a code block showing how to add a mod_rewrite block to the old Gallery2 install to redirect urls to Gallery 3.
Diffstat (limited to 'modules')
-rw-r--r--modules/g2_import/views/admin_g2_import.html.php16
1 files changed, 16 insertions, 0 deletions
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 @@
</li>
</ul>
</div>
+
<?= $form ?>
<? if (g2_import::is_initialized()): ?>
@@ -91,6 +92,21 @@
</a>
</p>
</div>
+
+ <div>
+ <h2> <?= t("Migrating from Gallery 2") ?> </h2>
+ <p>
+ <?= 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") ?>
+ </p>
+
+ <code>
+ &lt;IfModule mod_rewrite.c&gt;<br/>
+ RewriteEngine On<br/>
+ RewriteBase <?= g2_import::$g2_base_url ?><br/>
+ RewriteRule ^(.*)$ <?= url::site("g2/map?path=\$1") ?> [QSA,L]<br/>
+ &lt;/IfModule&gt;<br/>
+ </code>
+ </div>
<? endif ?>
</div>
</div>