Rewrite URL

Posted on 2004-10-21
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 ( ) 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 ""

Question by:filiep
    1 Comment
    LVL 44

    Accepted Solution

    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="">

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Cisco Complete Network Certification Training

    If you’re an IT engineer or technician, it's time you take your career to the next level. This elite training bundle is brimming with all of the information you need to learn to sit for Cisco CNNA, CCNP, and CCENT certification exams.

    Suggested Solutions

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    875 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now