Member
Member
formulae   17-02-2011, 23:09
#1

Is there any workaround to the ~user_name/zenphoto/index.php path
i.e. http://www.mydomainname.com/~user_name/zenphoto/index.php

I notice that in some implementations e.g. the zenphoto demo , there is no '~'
but in my installation and other examples it is present.

It makes the http address tidier if the '~user/' is not there and its preferable not have my user name in the path.
I could not find any help in the archives/search forum
thanks

Member
Member
sbillard   18-02-2011, 00:46
#2

Sorry, but this is not a zenphoto issue, it is with your ISP. that ~user_name is part of your domain, not something to do with zenphoto. Take it up with your provider. They may have an alternative for you.

Member
Member
formulae   18-02-2011, 15:02
#3

thanks , but can you explain it?
the ~user_name/path is created by the zenphoto php scripts on the menu items and links.

AS AN EXAMPLE...
The zenphoto main index.php script is in:
http://www.my_domain.com/zenphoto/index.php
and the index gallery page loads perfectly.
When i click on any on the menu item e.g 'archives' I get:
"http://www.my_domain.com/~my_username/zenphoto/index.php?p=archive" in the address bar
the '~my_username' seems to prefix the path.
It works perfectly finebut I was wanting to know why zenphoto was creating this dynamic path.
Is this a security issue that is created my the zenphoto scripts?
On browsing the forum I have seen other users with this format in their examples.
Is it to do with the type of server that zenphoto is on?
Mine is a unix based server.

Administrator
Administrator
acrylian   18-02-2011, 16:39
#4

As my collegue said contact your host about this as this may be a server configuration issue. Zenphoto by itself does not put the user name in there. The archive link should be www.my_domain.com/zenphoto/index.php?p=archive or wiht modrewrite www.my_domain.com/~my_username/zenphoto/page/archive.

Member
Member
sbillard   18-02-2011, 18:40
#5

If your site does indeed work both with and without the ~user, you can set the WEBPATH define in zp-config.sys to the path excluding the ~user.

Member
Member
formulae   18-02-2011, 21:20
#6

Thanks sbillard.
This worked an absolute treat.
A 10 minute fix.
I uncommented the WEBPATH line in zp-config.sys to:
define('WEBPATH', '');
and its works
hurray
I am using zpgalleriffic 1.4 and it looks great
thanks again

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.