htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: .htaccess stopping me logging into a .php script
PostPosted: 02 Nov 2007 16:40 
Offline

Joined: 02 Nov 2007 16:26
Posts: 1
I hope I am on the right forum.

I have a site which is 99% on a secure sub-domain, and I was advised to put the following .htaccess in the sub-domain root to force all calls to https://

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^ https://secure.mysite.com%{REQUEST_URI} [NS,R,L]

Everything appears to work properly on the site except for when I have to log into the admin area of a (commercial) php script. I just keeps resending the login screen to me. If I delete or rename the .htaccess, I can log in normally.
The developer has no idea how to fix it, and I wondered if this was a common problem with a quick answer.

Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: 15 Dec 2007 22:12 
Offline

Joined: 28 Feb 2007 17:16
Posts: 40
Please see: .htaccess SSL Examples for your answer.

Code:
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
ErrorDocument 403 https://askapache.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB