wordpress - Redirecting https://www to https://non-www -


i have secure wordpress website redirecting issue. i've researched thoroughly can, can't seem figure out. have 2 conditions redirecting traffic in .htaccess file. first, http://www traffic needs redirected https://afspa.org. i've accomplished following:

#begin wordpress  <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{server_port} 80 rewriterule ^(.*)$ https://afspa.org/$1 [r=301,l] </ifmodule>  #end wordpress 

my second condition https://www traffic needs redirected https://afspa.org. however, when users type in or have bookmarked "https://www.afspa.org" don't redirected. instead security warning. doing wrong?

this because certificate valid afspa.org not www.afspa.org. browser checks certificate before redirecting.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -