php - Base url breaks relative URLS -
i have website joomla, example one:
http://polishwords.com.pl/ksiazki/ksiazka/lihakw
and has base set to:
http://polishwords.com.pl/ksiazki/ksiazka/lihakw
and on top , left have menus created in joomla have relative urls like:
/edukacja
and seems crawlers come http://polishwords.com.pl/ksiazki/ksiazka/lihakw
and crawl relative path using base url , get:
http://polishwords.com.pl/ksiazki/ksiazka/lihakwedukacja
and when go there base url changes to
http://polishwords.com.pl/ksiazki/ksiazka/lihakwedukacja
and crawler goes to:
http://polishwords.com.pl/ksiazki/ksiazka/lihakwedukacjaedukacja
and on.
so base url combined related links menu create loop using standard joomla.
i dont use exts sef, , dont want to. use joomla 1.7.5.
am doing wrong? can please tell me how fix it?
- do not use
base href
- always use absolute paths in html
these 2 simple rules solve every possible error related links in html
relative urls like:
/edukacja
as matter of fact, it's absolute path, wrong one. need make joomla make path /ksiazki/ksiazka/lihakw/edukacja
proper absolute path
Comments
Post a Comment