Current time: 11-27-2024, 10:53 AM Hello There, Guest! (LoginRegister)


Post Reply 
www.domain.com/pma/ redirects with double "/"
Author Message
prale Offline
Junior Member
*

Posts: 92
Joined: Feb 2008
Reputation: 1
Post: #1
www.domain.com/pma/ redirects with double "/"
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???
02-29-2008 02:53 AM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #2
RE: www.domain.com/pma/ redirects with double "/"
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.
02-29-2008 04:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: www.domain.com/pma/ redirects with double "/"
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
02-29-2008 09:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #4
RE: www.domain.com/pma/ redirects with double "/"
I don't like it.

What about:
Code:
RedirectMatch permanent /pma([\/]*) http://{BASE_SERVER_VHOST}/pma/
02-29-2008 06:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: www.domain.com/pma/ redirects with double "/"
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
02-29-2008 07:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #6
RE: www.domain.com/pma/ redirects with double "/"
okay, I'll add it into trunk.
02-29-2008 09:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
prale Offline
Junior Member
*

Posts: 92
Joined: Feb 2008
Reputation: 1
Post: #7
RE: www.domain.com/pma/ redirects with double "/"
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.
02-29-2008 09:56 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: www.domain.com/pma/ redirects with double "/"
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
02-29-2008 10:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: www.domain.com/pma/ redirects with double "/"
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
02-29-2008 10:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #10
RE: www.domain.com/pma/ redirects with double "/"
i know
02-29-2008 11:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)