ispCP - Board - Support
www.domain.com/pma/ redirects with double "/" - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: www.domain.com/pma/ redirects with double "/" (/thread-2597.html)

Pages: 1 2


www.domain.com/pma/ redirects with double "/" - prale - 02-29-2008 02:53 AM

The url: http://www.domain.com/pma/
Redirects to: admin.ispcpdomain.com/pma//

The double slash at end doesn't matter, but it's not nice.

btw: http://www.domain.com/pma works fine, redirects to admin.ispcpdomain.com/pma/

---------------------------------------------------------
The bug tracker still rejects me as spam, what can I do???


RE: www.domain.com/pma/ redirects with double "/" - RatS - 02-29-2008 04:03 AM

Has anyone an idea how to fix?
to change the redirect will be wrong: pma is a directory so we have to add the tailing slash. On the other hand double slash looks bad.

@bug-Tracker: Try: give yourself a name. anonymous will be detected as SPAM. I'd to increase the so called Karma value to 1, because SPAM-Bots got Karmas of value 0.


RE: www.domain.com/pma/ redirects with double "/" - joximu - 02-29-2008 09:25 AM

I only see this solutin:
Redirect permanent /pma http://{BASE_SERVER_VHOST}/pma
Redirect permanent /pma/ http://{BASE_SERVER_VHOST}/pma/

this works well with both versions...

/J


RE: www.domain.com/pma/ redirects with double "/" - RatS - 02-29-2008 06:54 PM

I don't like it.

What about:
Code:
RedirectMatch permanent /pma([\/]*) http://{BASE_SERVER_VHOST}/pma/



RE: www.domain.com/pma/ redirects with double "/" - joximu - 02-29-2008 07:50 PM

Then you also can use .../pma///////// :-)

this should be enough to handle the problem above

RedirectMatch permanent /pma([\/]{0,1})

but, I think this is going in the right direction.

/J


RE: www.domain.com/pma/ redirects with double "/" - RatS - 02-29-2008 09:43 PM

okay, I'll add it into trunk.


RE: www.domain.com/pma/ redirects with double "/" - prale - 02-29-2008 09:56 PM

Why does the redirect needs to take place by the way?

I can think of a few reasons why pma should work on all domains, without a redirect:

Security issue:
- /pma/ is a "standard known' url, I don't want to give the ispcp-admin subdir and domain to hackers when they try the pma dir on one of the client domains.

Bandwith:
- I would like it if all bandwith usage by pma, is registered on the domain of that user.


RE: www.domain.com/pma/ redirects with double "/" - joximu - 02-29-2008 10:03 PM

The Admin can change the template so that the redirects are not integrated.

Since the pma runs in the vhost of the master process (and this is a must because of fast-cgi/suexec) the redirect is the only way if you want /pma to work (and some users want that because they cannot remember the right URL... - well, pma is only for people who can remeber something like this, but the webmail redirect is for the dummy people who cannot think one mu...
Another solution would be the URLs like pma.domain.tld which can be configured without redirect... but also runs in the master environment (see other threads about this topic)

/J


RE: www.domain.com/pma/ redirects with double "/" - joximu - 02-29-2008 10:07 PM

RatS Wrote:okay, I'll add it into trunk.

I found a more elegant one:

RedirectMatch permanent /pma([\/]?)

? is the same as {0,1} Smile


RE: www.domain.com/pma/ redirects with double "/" - RatS - 02-29-2008 11:02 PM

i know