View Single Post
  #1  
Old 18th May 2007, 01: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
Sponsored Links