Rewrite URL


my ISP is blocking port 80, so I have Apache running on a SuSE 9.1 which is listening on port 8000
I also have my own domain registered ( ) but nowhere hosted.
I uses the (free) services of dyndns (
The provider with which I registered my domain has setup an URL forwarding, so is forwarded to
I can now surf to my server without any problem. However when I look at some links, it is pointed to "" instead of "".
I can go directly to "", that works fine.
How can I hide ""

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Karl Heinz KremerCommented:
You are using relative links on your web page. Therefore, the browser (and not the server) will "build" the actual URL out of the base path and the relative URL. There are two ways you can resolve this, one is you can use absolute links on all your pages, or, you can set a base path at the top of your web page. You can find more information about the BASE path here: (this needs to go into the HEAD element of your pages.

A relative link is something like this: <A HREF="/the/new/path.html">, whereas the same path as an absolute path would look like this: <A HREF="">

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.