rewriting the $server_name variable with php?
| From: | Kevin Ruiz | Date: | Mon, 07 Jan 2002 15:05:15 +0000 |
| Subject: | rewriting the $server_name variable with php? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-15498@lists.php.net to get a copy of this message | ||
Is there anyway to rewrite the $server_name variable with php? This is kind
of an ambitious post for I think I already know the answer.
My company has just changed our corporate identity and we want our old url
to point to the new one, http://www.worktiviti.com. This
isn't a problem,
we've changed the DNS entries and everything is fine except for the fact
that my boss doesn't want people to see the old url. He wants the url to
reflect the new company name, worktiviti. I've talked to our hosting
company and they said they would look into editing the httpd.conf file but
it doesn't seem likely that they would change the config file for one
customer. I know that you can change the url through the mod_rewrite module
with Apache but I am not that familiar with apache nor do I have access to
the config file. If anyway has any suggestions as to how php could help me
out I'd appreciate it.
Thanks in advance,
Kevin