redirect from old (3.x) URLs
Submitted TVplaneta, Feb 10 2012 08:13 AM | Last updated Feb 10 2012 08:13 AM
file
Please, fix it
/admin/applications_addon/ips/gallery/app_class_gallery.phphave
public function afterOutputInit( ipsRegistry $registry )
{
/* Public Side Stuff */
if ( ! IN_ACP )
{
$registry->getClass('gallery')->checkGlobalAccess();
$registry->getClass('output')->addContent( $registry->getClass('output')->getTemplate('gallery_global')->globals() );
if( ipsRegistry::$request['request_method'] == 'get' )
{
if( $_GET['autocom'] == 'gallery' or $_GET['automodule'] == 'gallery' )
{
$registry->output->silentRedirect( ipsRegistry::$settings['base_url'] . "app=gallery", 'false', true, 'app=gallery' );
}
}
}
}
and .htaccess withRewriteRule ^index.php?autocom=gallery&req=si&img=([0-9]*)$ /index.php?app=gallery&image=$1 [R=301] RewriteRule ^/index.php?automodule=gallery&req=si&img=([0-9]*)$ /index.php?app=gallery&image=$1 [R=301]not yet redirected.
Please, fix it
| Status: | Fixed |
| Version: | 4.2.1 |
| Fixed In: | 4.2.2 |











3 Comments
not yet worked