Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 13th January 2012, 15:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,482 Times in 4,316 Posts
Default

The ispconfig redirect function is made to redirect a domain to a directory only. What you try to do is a typical redirect as it is used by cms systems in .htaccess files and should be added to a .htaccess file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #12  
Old 13th January 2012, 15:15
hotze.com hotze.com is offline
Junior Member
 
Join Date: May 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
The ispconfig redirect function is made to redirect a domain to a directory only. What you try to do is a typical redirect as it is used by cms systems in .htaccess files and should be added to a .htaccess file.

well, currently we do it manually in apache:

<VirtualHost 192.168.3.4>
ServerName www.foo.bar
Redirect permanent / http://www.otherfoo.bar/bla/blubb/lalelu.html
CustomLog /var/log/httpd/redirect-access.log combined
ErrorLog /var/log/httpd/redirect-error.log
</VirtualHost>

... and this is what I try to also solve directly in ISPConfig. The "only redirect to directories" is, AFAIK, not an Apache rule.
Reply With Quote
  #13  
Old 13th January 2012, 15:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,482 Times in 4,316 Posts
Default

Quote:
The "only redirect to directories" is, AFAIK, not an Apache rule.
Of course, as you do this not in the intended way. Your way is for servers that dont have ispconfig installed.

The correct way(s) for ISPConfig servers are e.g:

1) Add www.foo.bar as website or as aliasdomain of another wesbite in ISPConfig.

2a) Then either add a file named .htaccess in the web directory of the website containing just one line:

Redirect permanent / http://www.otherfoo.bar/bla/blubb/lalelu.html

2b) Or you add this line:

Redirect permanent / http://www.otherfoo.bar/bla/blubb/lalelu.html

in the apache directives field of the website in ISPConfig, which is on the options tab.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 13th January 2012 at 15:23. Reason: typos
Reply With Quote
  #14  
Old 13th January 2012, 15:37
hotze.com hotze.com is offline
Junior Member
 
Join Date: May 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

as for option 2b: thanks ... better than nothing :-)
means: at least doable as admin within ISPconfig.

the customer (still) has no option to change the settings (only with option 2a).

Reply With Quote
  #15  
Old 7th March 2012, 09:19
vaio vaio is offline
Member
 
Join Date: Nov 2010
Posts: 48
Thanks: 21
Thanked 1 Time in 1 Post
Default

Hello, i have a question.

If i use L redirect under website settings, this means that it redirects to different site, but preserves web address?

Example:
www.WEB1.tld -> www.websiteone.tld, but showing WEB1.tld as url

(i have tried that, but shows websiteone.tld as url).

Should i use different settings?
Thank you for advice!

V.
Reply With Quote
  #16  
Old 7th March 2012, 09:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,482 Times in 4,316 Posts
Default

L means that this is the last rule in the redirect process.Please see apache rewrite docs for a detailed description of the flags:

http://httpd.apache.org/docs/current...d_rewrite.html

(See section Flag and Syntax at the end of the page).
__________________
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:
vaio (7th March 2012)
  #17  
Old 7th March 2012, 10:12
vaio vaio is offline
Member
 
Join Date: Nov 2010
Posts: 48
Thanks: 21
Thanked 1 Time in 1 Post
Default

Thank you Till for pointing that out.

I believe there is a small bug in 3.0.4.3:
1. i have created website and added redirection to other - works OK
2. i have than removed this redirection - shows like no redirection, but it still redirects... - i think it didn't remove redirection as it should, still redirects to other site /on monitor system log was completed

I will completely remove site, than add it again and hopefully it will solve this problems. I just need to make backups etc first.

Will report back!
V.
Reply With Quote
  #18  
Old 7th March 2012, 11:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,482 Times in 4,316 Posts
 
Default

There is no such bug and there is no need to remove the site. Just close your browser or empty the browser cache as the browser remembers the redirect. Beside that, ensure that you waited until the jobqueue in the monitor is empty as it takes some time until the changes are written to disk.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
apache, redirect

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
Local Website Url - 403 Forbidden Salital Installation/Configuration 11 11th August 2011 10:12
I need help to debug a slow website vtapas Server Operation 15 10th August 2011 10:50
new website cannot be located prithwis Installation/Configuration 3 23rd October 2010 11:38
cannot receive emails after made website online llamy General 20 27th December 2007 01:14
Website Forwarding / URL Redirection jockstrap Tips/Tricks/Mods 1 16th July 2006 12:28


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


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