Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: Using https with fix URLs Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dnagel
Newbie
Newbie


Joined: 22 April 2007
Location: United States
Online Status: Offline
Posts: 8
Posted: 07 November 2007 at 5:26pm | IP Logged Quote dnagel

Hi I need to add a trailing slash to my URLs

 

#fix URLs without trailing slashes

RewriteCond Host: (.*)

RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]

 

This works, except that I can not use https.

 

I tried the following, it does allow the https, but it does not add the trailing slash.

 

#fix URLs without trailing slashes

RewriteCond Host: http\:(.*)

RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]

 

#fix URLs without trailing slashes

RewriteCond Host: https\:(.*)

RewriteRule ([^.?]+[^.?/]) https\://$1$2/ [I,R]

 

Can you show me what I am doing wrong?

 

Thanks

 



__________________
Dan
Back to Top View dnagel's Profile Search for other posts by dnagel Visit dnagel's Homepage
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6466
Posted: 08 November 2007 at 8:45am | IP Logged Quote Yaroslav

#fix URLs without trailing slashes
RewriteCond %HTTPS (on).*
RewriteCond Host: (.*)
RewriteRule ([^.?]+[^.?/]) http(?1s)\://$2$3/ [I,R]

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum