Web Hosting Talk







View Full Version : www redirection ... help pl.


domus
08-08-2001, 01:02 PM
ok when i do to
http://domain.com
it redirect's me to
http://www.domain.com

how do i turn this thing off ......
i know i need to edit some file but i forgot

thnx

Chicken
08-08-2001, 11:13 PM
This is a RaQ rewrite issue. I'm not certain how to 'fix' it, other than to search here and the mailing-list for 'URL rewriting' or 'URL rewrite'.

Chicken
08-08-2001, 11:34 PM
Just a little more on this in case you don't realize what is happening or what causes the rewrite. In your httpd.conf for a site this is the part regarding the rewrite:

(The control panel is known to 'correct' errors once you add another site or modify the server through the admin cp. I am not certain if it would 'correct' this if you removed it or not).


NameVirtualHost 216.234.160.225
<VirtualHost 216.234.160.225>
ServerName www.woobster.com
ServerAdmin admin
DocumentRoot /home/sites/site1/web
ServerAlias woobster.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^216.234.160.225(:80)?$
RewriteCond %{HTTP_HOST} !^www.woobster.com(:80)?$
RewriteRule ^/(.*) http://www.woobster.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>