#1  
Old 25th June 2012, 20:05
aldo aldo is offline
HowtoForge Supporter
 
Join Date: Jan 2011
Posts: 98
Thanks: 35
Thanked 3 Times in 3 Posts
Default domains to subfolders

I would like to configure ispconfig3 so that:
www.domain1.com points to /web/subfolder1
www.domain2.com points to /web/subfolder2

The subfolder name should not be visible in the URL so that:
www.domain1.com/index.php points to /web/subfolder1/index.php
www.domain2.com/index.php points to /web/subfolder2/index.php

Is it possible?

Thanks for any help.
Reply With Quote
Sponsored Links
  #2  
Old 26th June 2012, 09:44
aldo aldo is offline
HowtoForge Supporter
 
Join Date: Jan 2011
Posts: 98
Thanks: 35
Thanked 3 Times in 3 Posts
Default

I managed to get the redirect on physical folders by simply configuring an Aliasdomain in ISPconfig3 like:
Domain: www.domainX.com
Parent Website: TheSite
Redirect Type: L
Redirect Path: /subfolderX/
Auto-Subdomain: none
Active: checked

while I'm unable to redirect Aliasdomain on sub-folders of Wordpress multisite (based on sub-folders).

Any help is appreciated.
Reply With Quote
  #3  
Old 26th June 2012, 09:50
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,773
Thanks: 840
Thanked 5,610 Times in 4,421 Posts
Default

A wordpress multisite install ahs to be installed directly into the "web" folder and not s usbfolder. If you install it to a subfolder and use a redirect, then the apache redirect rules from wordpress will collide with the apache redirect rules for the domain redirection.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
aldo (26th June 2012)
  #4  
Old 26th June 2012, 12:32
aldo aldo is offline
HowtoForge Supporter
 
Join Date: Jan 2011
Posts: 98
Thanks: 35
Thanked 3 Times in 3 Posts
Default

Thanks Till.

Wordpress is installed in the "web" folder but in the network management of the WP, /subfolder1/ and /subfolder2/ are configured as path of the two sites.

These folders do not exist as physical folders but through
rootdomain.com/subfolder1/
rootdomain.com/subfolder2/
I access to the two site as expected.

By configuring the redirect of Aliasdomains I get the error 500 and in error.log there is:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Last edited by aldo; 26th June 2012 at 12:34.
Reply With Quote
  #5  
Old 26th June 2012, 12:35
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,773
Thanks: 840
Thanked 5,610 Times in 4,421 Posts
Default

You can not use apache redirects together with a cms that uses apache redirects too to change the path or URL of a request. As you see in your website, this can cause redirect loops which end in a 500 error.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
aldo (26th June 2012)
  #6  
Old 26th June 2012, 12:44
aldo aldo is offline
HowtoForge Supporter
 
Join Date: Jan 2011
Posts: 98
Thanks: 35
Thanked 3 Times in 3 Posts
 
Default

Ok, thanks Till
I'll try to disable redirect in ISPConfig3 acting only on those of CMS.
Reply With Quote
Reply

Bookmarks

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
howto Domain module, mail domains limit & mail alias unlimited ? radim_h Tips/Tricks/Mods 1 20th April 2011 12:24
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 15:15
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 9th May 2009 00:00
Domains limit not enforced for resellers? mrvanes General 3 3rd January 2008 12:07
different counting of domains torusturtle Feature Requests 7 9th May 2007 23:18


All times are GMT +2. The time now is 12:35.


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