Redirect page */main.php to an external one
|
josepcols
Joined: 2009-10-14
Posts: 7 |
Posted: Wed, 2009-10-14 13:12
|
|
Hi: Are they a way to redirect the */main.php page (without any parameters) to an external page? example: redirect http://mysite.com/gallery2/main.php ==> http://mysite.com/entry/main.html I can't find any way searching on Forums. For me, it would be a solution if the redirection is made using an apache feature like rewrite or redirect, but I've unable to do that because of parameters: if I redirect main.php, all URLs that contains main.php with parameters are redirected too. Thanks in advance Gallery version = 2.3 core 1.3.0 |
|

Posts: 22892
You could do this with a .htaccess rule but I don't have a clue on how to do that.
You could do:
{if empty($theme.parents)} stuff on root album {/if}so I guess you would want:
{if empty($theme.parents)} {if $theme.pageType != 'admin'} <meta http-equiv="refresh" content="2;url=http://someplace.com"> {/if} {/if}Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7
Thanks, Dave.
But: What file I need to modify?
Posts: 22892
album.tpl of the theme you are using
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team