httpd-users mailing list archives

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


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:

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.



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

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

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message