Absolute URL in my code (loading issues)

GK User
Mon Jul 02, 2012 4:24 am
Hello.
My world news II site, is calling the template using always absolute URLs this is causing loading issues in my server, look at my source:

Code: Select all
 <title>Meganoticias - Portada</title>
  <link href="/?format=feed&amp;type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
  <link href="/?format=feed&amp;type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
  <link href="http://meganoticias.mx/images/logos/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
  <link href="/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
  <link href="http://meganoticias.mx/component/search/?format=opensearch" rel="search" title="Buscar Meganoticias" type="application/opensearchdescription+xml" />
  <link rel="stylesheet" href="/media/system/css/modal.css" type="text/css" />
  <link rel="stylesheet" href="/templates/gk_twn2/css/k2.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/menu.gkmenu.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/reset/meyer.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/layout.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/joomla.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/template.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/menu.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/gk.stuff.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/k2.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/typography.style2.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/typography.iconset.1.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/typography.iconset.2.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/typography.iconset.3.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/style2.css" type="text/css" />
  <link rel="stylesheet" href="/modules/mod_tweetdisplayback/media/css/nostyle.css" type="text/css" />
  <link rel="stylesheet" href="http://meganoticias.mx/modules/mod_news_pro_gk4/interface/css/style.portal.mode.1.css" type="text/css" />
  <link rel="stylesheet" href="/plugins/content/arisexylightboxlite/arisexylightboxlite/js/sexylightbox.css" type="text/css" />
f


How can I have this: absolutes "http://meganoticias.mx/templates/" become relatives "/templates/"?

Appache is having trouble resolving so many internal requests...

Thanks
User avatar
Expert Boarder

teitbite
Mon Jul 02, 2012 12:21 pm
Hi

Are this links creaed by some plugin ? I cannot see this links in my copy of this template ?
User avatar
Moderator

GK User
Mon Jul 02, 2012 1:33 pm
No. I do not think so...
All links point to the template:

<href="http://meganoticias.mx/templates/gk_twn2/css/menu.gkmenu.css" type="text/css" /
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/reset/meyer.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/layout.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/joomla.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/template.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/menu.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/gk.stuff.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/k2.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/typography.style2.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/typography.iconset.1.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/typography.iconset.2.css" type="text/css" />
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/typography.iconset.3.css" type="text/css" /
<link rel="stylesheet" href="http://meganoticias.mx/templates/gk_twn2/css/style2.css" type="text/css" />
User avatar
Expert Boarder

teitbite
Tue Jul 03, 2012 4:22 pm
Hi

Sorry I didn't understood You the first time. Please go to /layouts/blocks/head.php and replace this links to relative ones.
User avatar
Moderator

GK User
Tue Jul 03, 2012 6:52 pm
OK did work...

But I still see 70 absolute URL's pointing to my own site, wich makes Apache crazy.

Most comming from the GK module...

http://meganoticias.mx/modules/mod_news ... sp_231.jpg"

where can I edit this,,,

what do you think about changing all to relative URL's?
User avatar
Expert Boarder

teitbite
Wed Jul 04, 2012 12:23 pm
Hi

Having relative url will not work on most of the servers and I also believe that in You case this also can be fixed in server configuration.

NSP got lots of such url. It would be better to tell You how to search for it in code than to write a full list :)

Please just open /modules/mod_news_pro_gk4 and run a search inside files looking for "/mod_news_pro_gk4".
User avatar
Moderator


cron