Hello together!
I have the following situation:
Internet ------- Server ---------intraServer
Server has external name hhbgate.bonn.de
intraServer has only internal name (www.hhb.bonn.de) and
only a local ip.
on Server I use:
<VirtualHost *:80>
ServerName hhbgate.bonn.de
ServerAdmin roemke RemoveThis @hhb.bonn.de
ServerSignature On
UseCanonicalName Off
RewriteEngine On
RewriteRule ^/(.*)
http://www.hhb.bonn.de/$1 [L,P]
TransferLog /var/log/apache2/www-access_log
ErrorLog /var/log/apache2/www-error_log
</VirtualHost>
this configuration works, but not for the trailing
slash problem, so I tried on the intraServer
#rewrite-rule for trailing slash problem, test on dir
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]
If I try
http://hhbgate.bonn.de/fnt/ it works,
if I try
http://hhbgate.bonn.de/fnt
it leads to the error
http://www.hhb.bonn.de/fnt/
not found (no difference, if I use the rewrite rule on the
intraServer
www.hhb.bonn.de or if I switch it off)
Hmm, I think that I don't understand rewriting - can anybody
give me a hint, where I found an explanation of this problem?
I thought it must be a standard problem?
Thanks
Karsten