Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th November 2009, 16:31
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 927
Thanks: 16
Thanked 261 Times in 208 Posts
Default Co-Domain redirection problem

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?
Reply With Quote
Sponsored Links
  #2  
Old 13th November 2009, 14:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

The redirect is only for directories, not for single files.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th November 2009, 14:38
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 927
Thanks: 16
Thanked 261 Times in 208 Posts
Default

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.
Reply With Quote
  #4  
Old 16th November 2009, 09:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
Default

Quote:
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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 16th November 2009, 10:08
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 927
Thanks: 16
Thanked 261 Times in 208 Posts
 
Default

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.
Reply With Quote
Reply

Bookmarks

Tags
co-domain, redirection

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem deleting a Site and Domain in ISPCONFIG dnarol General 4 9th November 2009 11:34
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
problem user @ domain aurelius Installation/Configuration 3 4th October 2008 23:57
Problem with Domain and Statistic thgenzel General 1 18th January 2007 07:45


All times are GMT +2. The time now is 06:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.