[TYPO3] Advanced Banner management and RealURL problem

Christopher bedlamhotel at gmail.com
Tue Jan 24 18:40:24 CET 2006


Hi,

On 1/24/06, matt <matt at f13.co.uk> wrote:
> I don't really understand how using the RewriteBase directive is going to help... I tried it anyway and it didn't solve the problem.
>
> What I can see happening is this....
>
> The links that the Banner system are producing are relative links e.g.
>
> <a href="products/interesting_page.html?no_cache=1&amp;tx_macinabanners_pi1%5Bbanneruid%5D=1">
>
> Hence, if your currently viewing a page at say:
>
> URL: http://mydomain.tld/home/products/morestuff.html
>
> and click to link above, it will take you to the following page, relative to the current page:
>
> URL: http://mydomain.tld/home/products/products/interesting_page.html
>
> I don't think the fact that my typo3 install is in a subdirectory has much significance, but I may be wrong of course.
>
> If anyone knows what's going on here I would be very thankful to hear.


I think there's an error in your logic above :)

Using Realurl, you should have, in the head of your page:

<base href="http://domain.tld/subdirectory/" />

Set this up with "config.baseURL=http://domain.tld/subdirectory/" in
your template. Any relative links on the page will be relative _to the
href attribute of the base element_. This leads me to conclude that
the base element is probably missing from the head of your pages--OR,
since you're working in a subdirectory, that the href attribute is
somehow wrong (i.e. missing the subdirectory etc).

-Christopher



More information about the TYPO3-english mailing list