Welcome to WebmasterWorld Guest from 50.17.5.36

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)

New User

5+ Year Member

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


Hi,

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"
...
</Location>
</Virtualhost>

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]