Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

https redirection & trailing slash problem

https trailing /

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

New User

10+ Year Member

joined:Mar 17, 2008
posts: 1
votes: 0


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)

Preferred Member

10+ Year Member

joined:May 14, 2003
posts: 376
votes: 0

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]

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members