hi
thanks richardk for taking time to answer I really appreciate it
for some reasons the above solution does not work in my case
I have a this following VirtualHost config in appache:
#virtualhost for
www.domain.com and domain.com
......
#virtualhost for users
<VirtualHost *:80>
DocumentRoot /randomdir
ServerName user.domain.com
ServerAlias *.domain.com
</VirtualHost>
the randomdir is a fake root dir, basically a empty dir with only a .htaccess file with the above code that internally redirect any request to to
www.domain.com/~user
there is no .htaccess in the user actual public_html dir, is this trick ok ?
I think that once the redirection is made it does not use the .htaccess of this vitualhost anymore hence the
# mod_dir trailing slash fix part is never parsed
I was thinking about another solution : before the # subdomain code
is it possible to make code that append the / if this is a directory and not if this is a file
for instance for all
user.domain.com/dir => user.domain.com/dir/
and
user.domain.com/file.ext => user.domain.com/file.ext
then the # subdomain code
I know this is not a good solution caus
user.domain.com/dir.sumthing
and
user.domain.com/file
woudn't work
but I'm ok with this limitation
