Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 18th May 2007, 02:21
torusturtle torusturtle is offline
Senior Member
 
Join Date: Apr 2006
Posts: 296
Thanks: 21
Thanked 24 Times in 16 Posts
Send a message via ICQ to torusturtle Send a message via AIM to torusturtle
Lightbulb keeping subdomain URL in browser address bar

When creating a codomain (subdomain) and forward it to an internal folder the address bar of the browser changes displaying the forwarded folder.

e.g. if you set the forward for sub.domain.tld to /sub/ you'll get domain.tld/sub/

There are to ways to keep sub.domain.tld.

1. Option
Change the code of ISPConfig like described here:
Co/sub-domains without rewritten URLs

2. Option
  1. Leave the forward value empty
  2. Add the following into the Apache Directives field:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST}   ^sub.domain.tld [NC]
RewriteRule   ^/(.*)$ /sub/$1  [L]
Reply With Quote
The Following 6 Users Say Thank You to torusturtle For This Useful Post:
badran (21st April 2008), falko (18th May 2007), madmucho (19th May 2007), mbria (15th November 2007), mturillo (22nd October 2008), pakogah (17th June 2008)
Sponsored Links
 

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
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
subdomain URL to webmail torusturtle Installation/Configuration 2 23rd August 2006 22:56
Forward on subdomain, but alias as url? OnTheRun Installation/Configuration 3 10th June 2006 00:25
Mail address at subdomain dlikar Installation/Configuration 1 7th June 2006 11:42


All times are GMT +2. The time now is 23:24.


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