Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have my own web server and I purchased domain name to use it with my website.

For example - my domain name is www.example.com

When I navigate to www.example.com/example.html (or www.example.com/example) I will always be redirected to 178.xx.xx.xx/index.html.

I was able to implement navigation within my website using relative links, but when I do so it would not show the correct URL (for example, I am on www.example.com/index.html page, and I navigate to /example.html - URL bar would show www.example.com/index.html instead of www.example.com/example.html)

If I navigate to 178.xx.xx.xx/example.html manually, it opens the right page, so I assume that my server works correctly.

I am using Debian with Apache for my web server. For my domain I redirect www.example.com to http://178.xx.xx.xx/ with cloak.

From all above I assume the problem is with my domain configuration, as I tried my friend domain name, and it worked correctly.

share|improve this question
up vote 0 down vote accepted

Make sure you have a basic A Host setup with your domain registrar host. If its correct then edit your htaccess and make sure that looks fine

share|improve this answer
Thanks. My problem was, I had Web Forward enabled instead of A Record. – Aleksey Belezjak Feb 16 '14 at 9:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.