PDA

View Full Version : Co-Domain redirection problem


Croydon
12th November 2009, 17:31
When redirecting a co-domain in ISPC2 a / is always added.

If you enter http://www.mydomain.tld/home.html calling the co-domain will redirect you to http://www.mydomain.tld/home.html/

So redirection only works for domains and directories but not for complete urls
Is this a wanted behaviour or a bug?

falko
13th November 2009, 15:25
The redirect is only for directories, not for single files.

Croydon
13th November 2009, 15:38
Yes, that is what i experienced ;)
But wouldn't it be better to be able using redirections to a specific file, too?
I see no other way of doing this - only creating apache directives for the account with rewrite rules in it.

till
16th November 2009, 10:55
But wouldn't it be better to be able using redirections to a specific file, too?

Normally you do this by a.htaccess file. All common cms systems that need these functions already come with a .htaccess file for that.

Croydon
16th November 2009, 11:08
Sure. I do not doubt that :)

Let's assume we have a Domain www.mycomain.com that belongs to customer X.
Customer X has no experience with .htaccess or mod rewrite.

He wants to set up subdomains that redirect like this:
sub1.mydomain.com -> www.mydomain.com/main.php?action=sub1
sub2.mydomain.com -> www.mydomain.com/bla.php
sub3.mydomain.com -> www.mydomain.com/thatsme.html

I know that you can do all this via httpd directives or .htaccess but that's sort of a problem for customers that can only use the ispc interface, isn't it?
I could change the ispc code of that installation myself, but I didn't yet understand if there's a reason that you can only redirect co domains to directories in ispc.