htaccess https rewrite issue when trying to login to cmsms
I am having some issues with my rewrite rules since moving to a new
server. Our previous server was Apache 2.2.13 with PHP 5.2.11, the new
server is Apache 2.2.25 with PHP 5.4.18.
I am ensuring all traffic is transferred to www. and https
The redirects work fine for users, but when I try to login to cmsms, I
enter my username and password and click login and the page refreshes,
clearing the username and password boxes rather than logging into admin. I
can login if I remove the following from the htaccess file.
This is what is in the htaccess file.
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/home
RewriteRule ^(.*)home$ https://www.energysavingwarehouse.co.uk/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ https://www.energysavingwarehouse.co.uk/$1
[R=301,L]
I had some issues with the php.ini that I had transferred across so
replaced it with this, maybe I need more?:
register_globals = off
date.timezone = Europe/London
output_buffering = 1
;zend_extension = /usr/local/ioncube/ioncube.so
post_max_size = 20M
memory_limit = 200M
upload_max_filesize = 20M
max_execution_time = 120
expose_php = off
session.save_path = /tmp
magic_quotes_gpc = Off
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED?????????????????
Thanks for your help
No comments:
Post a Comment