Jump to content


Photo

redirect from old (3.x) URLs


file
/admin/applications_addon/ips/gallery/app_class_gallery.php
have
	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 with
RewriteRule ^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

sorry
RewriteRule ^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]
and redirect works only if commented this code
after comment
RewriteRule ^index.php?automodule=gallery&req=si&img=([0-9]*)$ /index.php?app=gallery&image=$1 [R=301]
not yet worked