So I have the following code in my .htaccess
file:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
So in the browsers my domain appears like this: www.mysite.com
. But I want to achieve the following: http://www.mysite.com
. Currently the desired result works in IE only (tested in IE11). Chrome and FF will show the URL as www.mysite.com
. Is it possible to have http://www.mysite.com
in the address bar of all browsers?
Chrome will remove the http:// from the address bar (Probably for readability). I assume FF would do the same as may some others.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.