View Single Post
  #27  
Old 27th March 2009, 22:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,171 Times in 4,054 Posts
Default

Here is your first post in the thread:

-------------------------------------------------------------
but this isn't 100% truth

I ve modified my .vhost from apache2

Restarted apache2 and works fine

But, if I reboot, ispc restore the .vhost file

Why?
---------------------------------------------------------------

So were did you ask this question there? The first time you asked
the question how to rewrite domain.com to www.domain.com in your last post #26.

There is no redirect needed as you get the same content of the website when you
enable the auto subdomain when you enter www.domain.com
or just domain.com. Thats what the function is intended to do and
this is what the function does.

If you automatically want to rewrite domain.com to www.domain.com
which is not nescessary but can be done of course e.g for search engine optimisation, you can do this with apache rewrite rules that can be added to the apache directives field (See my post #8 part 3) in case that you want to have other rewrite rules then the ones that ispconfig adds on the rewrite tab.

For example just add:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^/(.*)$ http://www.domain.com/$1 [R]
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote