httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hermann Kleister <h_kleis...@yahoo.de>
Subject [users@httpd] Rewriting depending on access through subdomain
Date Thu, 12 Oct 2006 22:26:24 GMT
Hello,
I have a shared hosting setup with one domain example.org and a 
subdomain test.example.org. The document root of example.org is
/home/user1/example.org/ and the document root for
test.example.org lies within this, in
/home/user/example.org/test/. A document in
/home/user/example.org/test/, e.g. foo.html can thus be reached
as http://example.org/test/foo.html and
http://test.example.org/foo.html. Now I want to rewrite documents
under test/ using mod_rewrite but this leads to problems depending
how e.g. foo.html is accessed.

For the first case

RewriteBase /test/
Rewrite ^(.*)\.html$ $1-new.html [R=301, L]

leads to success, for the second it needs to be

RewriteBase /
Rewrite ^(.*)\.html$ $1-new.html [R=301, L]

How can I solve this for both cases?
Note I dont have access to httpd.conf.

Thanks in advance.

H. Kleister




	

	
		
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

---------------------------------------------------------------------
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