mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-22 09:29:53 -04:00
Add a code block showing how to add a mod_rewrite block to the old Gallery2 install to redirect urls to Gallery 3.
This commit is contained in:
@@ -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>
|
||||
<IfModule mod_rewrite.c><br/>
|
||||
RewriteEngine On<br/>
|
||||
RewriteBase <?= g2_import::$g2_base_url ?><br/>
|
||||
RewriteRule ^(.*)$ <?= url::site("g2/map?path=\$1") ?> [QSA,L]<br/>
|
||||
</IfModule><br/>
|
||||
</code>
|
||||
</div>
|
||||
<? endif ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user