This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: Using https with fix URLs (Topic Closed Topic Closed)
Author
Message |
dnagel
Newbie


Joined: 22 April 2007
Location: United States
Posts: 8
Posted: 07 November 2007 at 5:26pm  

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 Visit dnagel's Homepage
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 08 November 2007 at 8:45am  

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

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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