apache - Redirecting non-www to www in htaccess -


this have written in .htaccess file.

rewriteengine on  rewritecond %{http_host} ^www\.spreadcreativity\.org$ rewriterule ^/?$ "https\:\/\/spreadcreativity\.org\/" [r=301,l] 

in browser displaying https://spreadcreativity.org

but want show https://www.spreadcreativity.org

please me rectify .

thanks.

try after clearing cache of web browser :

rewriteengine on  rewritecond %{http_host} !^www\. [nc] rewriterule ^/?$ https://www.spreadcreativity.org/ [r=301,l] 

Comments

Popular posts from this blog

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -