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?

  1. do not use base href
  2. 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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -