Website Showing IP Not Domain Name

First of all i would like to say that i am more of a designer than a developer.

i have a domain name registered on GoDaddy (www.svelteliving.com) and my hosting is on BLUEHOST.com.

Read More

i am now hosting my website but the issues is that the website in the adress bar shows the ip (http://69.89.31.99/~svelteli/) and not the domain name (www.svelteliving.com)

i tried to update my htaccess like below:

    RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.svelteliving.com$
RewriteCond %{HTTP_HOST} ^69.89.31.99
RewriteRule (.*) http://www.svelteliving.com/$1 [R=301,L]

# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteBase /~svelteli/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~svelteli/index.php [L]
</IfModule>

# END WordPress

This seems to work on the homepage only but when i click on a link in the menu the ip shows up again.

Please help me.

Related posts

Leave a Reply

1 comment

  1. Replace your .htaccess content with the content below. And, just in case, clear your browser’s cache before trying new settings.

    # Use PHP5.4 as default
    AddHandler application/x-httpd-php54 .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress