Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Rewrite URL

Posted on 2004-10-21
Medium Priority
Last Modified: 2010-03-04

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 ( my.domain.com ) but nowhere hosted.
I uses the (free) services of dyndns (mydomain.dyndns.org)
The provider with which I registered my domain has setup an URL forwarding, so my.domain.com is forwarded to mydomain.dyndns.org:8000
I can now surf to my server without any problem. However when I look at some links, it is pointed to "http://mydomain.dyndns.org:8000/link" instead of "http://my.domain.com/link".
I can go directly to "http://my.domain.com/link", that works fine.
How can I hide "http://mydomain.dyndns.org:8000"

Question by:filiep
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 44

Accepted Solution

Karl Heinz Kremer earned 2000 total points
ID: 12375031
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: http://www.w3.org/TR/REC-html40/struct/links.html#h-12.4 (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="http://my.domain.com/the/new/path.html">

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question