Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

URL Hiding to TWG on funipic
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=140
Page 1 of 1

Author:  TGW-User [ 9. Jan 2006, 15:59 ]
Post subject:  URL Hiding to TWG on funipic

Hello,

i have a domain by united-domains.de and i wnated to redirect a subdomain to TWG on the funpic webspace.

I did the same with a postnuke installation and it worked very well.

but with TWG i can only access the index page but when i want to enter an album i get a 404 error.

if i do the redirection to an other webspace where TWG runs i get also a 404 error so i think the problem is triggerd by TWG.

Without the redirection/url-hiding TWG works on both webspaces.
Can anyone help?
Is there a solution for this problem?

Author:  TinyWebGallery [ 9. Jan 2006, 16:33 ]
Post subject: 

Hi,

Can you post a test link?

How do you redirect?

/Michael

Author:  TWG-User [ 9. Jan 2006, 17:48 ]
Post subject: 

i redirect via URL hiding. (so is the fuction called by united-domains)
There is an webserver emulated which gets the page from the server and forward it to the client

***EDIT***

ahh now i found the problem.

i installed the gallery to a subdirectory
/gallery/twg/

the url ist also redirecting to
#removed_broken_link

when i call the gallery with the redirect it points to the correct URL
but when i enter an album the URL switch to
http://mydomain.com/gallery/tgw
and so the path
gallery/tgw
is there twice in the url, because when i resolve the redirection the url becomes to
#removed_broken_link

So i guess that there might be a little fix in TWG so that TWG is not always called to the web-root of the server.
What do you think?

Author:  TinyWebGallery [ 9. Jan 2006, 19:50 ]
Post subject: 

Hi,

I'm coming closer - but I don't fully understand why this happen.

But this is a problem - with the little fix I mean -
because this is used because if you integrate TWG with php include it has to find everything properly ....

And the fix is not small (83 times!) - every link I generate .... - and there are many !
maybe I can do a kind of search/replace with a variable and then this variable can be changed if TWG is used the way you do...

Have you tried to include twg in a frame with 100% ....
or a gallery.htm in the main dir with a redirect to the gallery?

If I would change this - would you test it ?

/Michael

Author:  TinyWebGallery [ 9. Jan 2006, 19:59 ]
Post subject: 

Hi,

can you test this for me:

put this in the config.php (somewhere in the beginning!)
$_SERVER['PHP_SELF'] = "index.php";

and retry!
Check the iframes like entering a comments - they normaly need a path ...

I don't know if the server settings can simply be overwritten ...

*** edit **

Just tested this - not working because the iframes are located in a different directory and without $_SERVER['PHP_SELF'] this path would be missing - and the php include would not work anymore either ....

I think easies was is to use an iframe with 100% width and height !

/Michael

/Michael

Author:  TWG-User [ 10. Jan 2006, 08:01 ]
Post subject: 

of course i would test somthing if i can help you.

The gallery works if i include it in a frame.

So think i must go this way if i want to use TWG.

Thanks for your help

Author:  TinyWebGallery [ 10. Jan 2006, 20:18 ]
Post subject: 

Hi,

If this works for yout - yes.

I would have to change too much to get this too work.
But its great that you have found out this.

Maybe other users have this problem too and now at least I know whats the problem.

Thanks,
/Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/