php - Codeigniter redirect non-www to www preventing form submission -


issue codeigniter redirection in .htaccess file. redirection code below:

rewriteengine on rewritecond %{http_host} . rewritecond %{http_host} !^www\.domainname\.net [nc] rewriterule ^(.*) http://www.domainname.net/$1 [r=301,nc,l]  rewritecond %{request_uri} ^/system.* rewriterule ^(.*)$ index.php?/$1 [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.+)$ index.php?/$1 [l] 

this seems work correctly noticed forms submission stopped working because of redirection. ideas please?

use

#redirect www rewriteengine on rewritecond %{http_host} ^[^.]+\.[^.]+$ rewritecond %{https}s ^on(s)| rewriterule ^ http%1://www.%{http_host}%{request_uri} [l,r=301] 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -