[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] HTTP Header Info



Hi all!

Does anybody know how to strip the www. off of the HTTP_HOST info that the Apache server on the raqs sends out? I am using it in a cgi-script and I need to be able to remove the www. if it is present. So the script will call domain.com out of the database instead of having www.domain.com and domain.com in the database for the two different methods of accessing the domain.

So is there a filter command I can use to remove the www. if it is present in a certain variable?

Thanks!
Cody