Msg#: 3809603 posted 4:39 pm on Dec 17, 2008 (gmt 0)
Sorry if this has been answered before, I tried searching for it, but I am not sure what to search for...
Anyway, I had a website with urls like www.domain.org/example/
Recently I changed the site completely, and now I have some ulrs that read www.domain.org/example.html. The problem is, the old urls (via Google) simply show the page but without styling. So I want to rewrite or redirect the example/ urls to example.html. How do i do this?
Msg#: 3809603 posted 4:54 pm on Dec 17, 2008 (gmt 0)
That's because you have misunderstood the syntax to use for a redirect.
However, you don't seem at all clear as to whether you need a rewrite or a redirect - and they are completely different things.
You need to make sure that the content is directly available at only one URL and that all other variations issue a redirect.
In some cases you may also need a rewrite to connect the URL request to the internal filename for that content, when the tail of the URL differs from the actual filename.
If styling is not being seen, then it is likely that you need to begin the links to the stylesheet with a / and state the full folder-path to the stylesheet as it is the browser that resolves the stylesheet location based on the URL for the current HTML page.