Web Hosting Talk







View Full Version : How to do this (no www at location field)


raylin
02-04-2001, 12:30 AM
Anybody knows how to display http://domain.com instead of
http://www.domain.com after pressing http://domain.com ?

I read a thread about this topic before but cannot find it now.

allan
02-04-2001, 01:32 AM
When you set up your zone file, point the A record for domain.com to the same IP address as the A record for http://www.domain.com.

If you are using the Control panel in the Cobalt, then you would leave the hostname field blank.

In a regular zone file it would look like this:

IN A 10.10.10.1
www IN A 10.10.10.1

allan

Keeg
02-04-2001, 01:33 AM
actually raylin is on a cobalt raq and in order to do this on a raq you need to turn the rewrite rules off, as it stands everything.domain.com will be rewritten to http://www.domain.com

Steve

raylin
02-04-2001, 01:37 AM
uuallan,

I have done that as you said, and can reach my site by both way.

What I want is to leave http://domain.com in the
location field of IE (instead of http://www.domain.com)

Can you do this ?


Steve,

I don't know how to do it exactly, can you explain more?
(I need a step-by-step guide)

Thanks!


[Edited by raylin on 02-04-2001 at 12:49 AM]

Tobbe
02-04-2001, 10:33 AM
Hi,

what you need to do, is to edit the httpd.conf file, and then restart the webserver. Can't copy and paste the file here, as 4webspace has shut down my server right now :-(

You can find more info about this at http://www.cobalt.com mailgroups.

/Tobbe

Cael
02-04-2001, 11:12 AM
Why do they shut down your server?

Tobbe
02-05-2001, 03:59 AM
raylin:
this is what you can do. Remeber that you are changing in your configuration files, so make a backup and don't blame me if things won't work (it works on my raq3, so it should be OK).

Edit the file:
/etc/httpd/conf/httpd.conf

put # infront of Rewrite on the lines on the domain that you want this feature on and that looks like below.

#RewriteEngine on
#RewriteCond %{HTTP_***** ...

#RewriteCond %{HTTP_***** ...
#RewriteRule ^/(.*) ...
#RewriteOptions inherit


save the file, and restart the webserver.
Hope it will work ;-) . Somehow this messes up the raq administration pages, so you won't be able to enter those pages the normal way (www.yourdomain.com/siteadmin etc.)


Donovan:

they did the right thing and shut down our server, as we have a URL forwarding service, and one of our users SPAMed a messageboard using one of our subdomains. We had 24 hours to do something about this user, but as I didn't check my mail during that time, we weren't able to reply to Tera-byte, and they shut down the server.
I think that was OK, maybe they could have called me or something first, but the fault was ours, so I can't blame them.

/Tobbe