httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Freeman <neil.free...@asa.co.uk>
Subject [users@httpd] Rewriting absolute URLs
Date Fri, 19 Mar 2004 11:28:14 GMT
I have the following image:

	http://www.oursite/images/title.gif

Within a page I can access this image using an absolute URL as such:

	<img src="/images/title.gif" />

This works fine as long as everything stays where it is. We are in the 
process of changing hosting company at the moment and before our site 
goes live and DNS records are changed, we can only access our site using 
a URL as such:

	http://www.newhost.com/ourcompany/

This subsequently breaks all of our absolute URLs due to the 
'ourcompany/' section of the URL. Is there any way I can set up Apache 
(using a .htaccess files and mod_rewrite?) so that *all* absolute 
requests are rewritten to include the 'ourcompany/' section of the URL?

Any help greatly appreciated.

Cheers,

Neil




This communication is confidential to the intended recipient(s). If you are not that person
you are not permitted to make use of the information and you are requested to notify the sender
immediately of its receipt then destroy the copy in your possession. Any views or opinions
expressed are those of the originator and may not represent those of Advanced System Architectures
Ltd.

*** This Email Has Been Virus Checked ***


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message