IP to domain name after enter url in address bar : htaccess

Abhi's Blog

Hello Everyone, Again come with good knowledge. Check below, now it is on .htaccess
what you do when you want to do change IP and use domain name instead. You can right below statment (statment order need to match and check other rule if it will worked)

1 RewriteEngine on

2 RewriteCond %{HTTP_HOST} !^www\.domainname\.com$
3 RewriteRule (.*) https://www.domainname.com/$1 [R=301,L]

View original post

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s