Jump to content


This topic is now archived and is closed to further replies.

itinerant baker

.htaccess to get round ssl

Recommended Posts

I seem to be having trouble with one of the contributions I've installed (osplayer) and ssl/https. ssl (I assume) is throwing me out when I hit the 'create folder' button - this works fine with ssl turned off but falls over once I turn it on again.



I was wondering if there was any way to use htaccess to redirect from the secure site to the unsecure one when that particular module was called. I don't know much about coding for htaccess but a quick web search has led me in the direction of mod_rewrite and this is the code I've hacked together:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ~xxxxxxxxx.xxx/shop/admin/mp3manager.php(.*) http://www.xxxxxxxx.xxx/shop/admin/mp3manager.php [R,L]


....but it doesn't seem to be working. I'm probably going wrong somewhere really basic so any suggestions would be appreciated.



I'm presuming that when I click on one of the other admin options when I've finished with this it'll take me back to the secure server.




Alternatively, is there any way of doing this so that ssl is normaly turned off for admin using configure.php but htaccess sends certain modules to the secure server?

Share this post

Link to post
Share on other sites