Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

https redirection & trailing slash problem

https trailing /



7:07 pm on Mar 18, 2008 (gmt 0)

5+ Year Member


I have searched endlessly for solutions here I can seem to fix my problem. The problem I seem to face is that I need to place an annoying trailing slash at [svn.example.com...] for it to work properly otherwise it redirects to [svn.example.com:443...] Here's a snippet of what I have in my httpd.conf:

<Virtualhost *:80 *:443>
ServerName svn.example.com

RewriteEngine On
Options +FollowSymlinks
RewriteCond %{SERVER_PORT} !443$
RewriteRule ^(.*)$ [svn.example.com$1...] [R=301,L]

# Subversion Config
<Location /project >
DAV svn
SVNPath /data/svn/project
SVNIndexXSLT "/svnindex.xsl"

I have another subdomain on the site which works perfectly fine for http -> http redirection


8:11 pm on Mar 23, 2008 (gmt 0)

10+ Year Member

1. why do you call it annoying? /project/ is the name of the directory, is it not?

2. try this... it should work fine in /.htaccess

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/project$ [NC]
RewriteCond %{REQUEST_URI} !^/project/$
RewriteRule .* /project/ [L]

Featured Threads

Hot Threads This Week

Hot Threads This Month