Problem with Joomla Website / pages have lost style sheet formatting

I have just put a new article on our website www.bluespier.com and when I updated it the style sheet corrupted on every page except the home page.  I have checked the source and I have noticed that the home page source (correct) is

<link rel="stylesheet" href="/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="/templates/siteground-j15-59/css/template.css" type="text/css" />

and every other link from the home page's source is
<link rel="stylesheet" href="/index.php/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="/index.php/templates/siteground-j15-59/css/template.css" type="text/css" />

Clearly the index.php at the beginning is causing me the issue however my question is how to I fix this?

Any help would be much appreciated.

Many Thanks
bs_userAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

thompsonwirelessCommented:
If you are updating Joomla and do not click HOME or whatever the menu option is, and you decide to click BACK on your browser there is a very good chance of corrupting your index file.  You will have to restore that file alone if nothing else.
0
bs_userAuthor Commented:
what file have I corrupted? The index.php?  I'm a bit out of my depth here so if you could explain what is required it would be much appreciated.

Many Thanks
0
thompsonwirelessCommented:
I would find the template used to create that site and reload the index file unless you have a backup.  That may or may not be the end all solution but I would definitely begin there.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

bs_userAuthor Commented:
I have tried changing the template as we have 3-4 already loaded on the joomla cms.  I changed the default template and it had no effect so I dont think its template related?
0
thompsonwirelessCommented:
Can you get into admin mode and either remove the article you uploaded and possibly change the template to something else to see if the problem still exists?
0
rashgangCommented:
Its a problem with link path please refer the

Please check the index.php file and post index.php file
0
bs_userAuthor Commented:
Please see the code for the index.php

I have also attached it for your reference.

Many Thanks
<?php
/**
* @version		$Id: index.php 10381 2008-06-01 03:35:53Z pasamio $
* @package		Joomla
* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Set flag that this is a parent file
define( '_JEXEC', 1 );

define('JPATH_BASE', dirname(__FILE__) );

define( 'DS', DIRECTORY_SEPARATOR );

require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;

/**
 * CREATE THE APPLICATION
 *
 * NOTE :
 */
$mainframe =& JFactory::getApplication('site');

/**
 * INITIALISE THE APPLICATION
 *
 * NOTE :
 */
// set the language
$mainframe->initialise();

JPluginHelper::importPlugin('system');

// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');

/**
 * ROUTE THE APPLICATION
 *
 * NOTE :
 */
$mainframe->route();

// authorization
$Itemid = JRequest::getInt( 'Itemid');
$mainframe->authorize($Itemid);

// trigger the onAfterRoute events
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');

/**
 * DISPATCH THE APPLICATION
 *
 * NOTE :
 */
$option = JRequest::getCmd('option');
$mainframe->dispatch($option);

// trigger the onAfterDispatch events
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
$mainframe->triggerEvent('onAfterDispatch');

/**
 * RENDER  THE APPLICATION
 *
 * NOTE :
 */
$mainframe->render();

// trigger the onAfterRender events
JDEBUG ? $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');

/**
 * RETURN THE RESPONSE
 */
echo JResponse::toString($mainframe->getCfg('gzip'));

Open in new window

index.php
0
rashgangCommented:
hey this is the not the template index file this is the root index file
please post the template index file
0
bs_userAuthor Commented:
Please see attached as requested for the template
<?php

defined( '_JEXEC' ) or die( 'Restricted access' );

JPlugin::loadLanguage( 'tpl_SG1' );

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >

<head>

<jdoc:include type="head" />



<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />

<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />



<!--[if lte IE 6]>

<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />

<![endif]-->



</head>

<body class="body_bg">

	<div id="page_bg">

		<div id="topw">

			<div id="logo" style="width:739px;">

				<a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>

			</div>

			<div id="search" style="width:200px;">

				<jdoc:include type="modules" name="user4" style="rounded" />

			</div>

		</div>

		<div class="clr"></div>

		

		<div class="pill_m">

			<div id="pillmenu">

				<table cellpadding="0" cellspacing="0" style="margin: 0 auto;">

					<tr>

						<td style="text-align: center; vertical-align: center;">

							<jdoc:include type="modules" name="user3" />

							<div class="clr"></div>

						</td>

					</tr>

				</table>

			</div>

		</div>

		

		<div id="header">

			<div style="width:450px; float: right; margin: 20px 20px 0 0;">

				<div id="newsflash">

					<jdoc:include type="modules" name="top" style="rounded" />

				</div>

			</div>

		</div>

		

		<!--center start-->

		<div class="center">

			<div id="wrapper">

				<div id="content">

				<!--pathway start-->

							<div class="cpathway">

								<div class="cpleft">

									<jdoc:include type="module" name="breadcrumbs" />

								</div>

							</div>

							<!--pathway end-->

					<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>

						<div id="leftcolumn">	

							<jdoc:include type="modules" name="left" style="rounded" />

							<?php $sg = 'banner'; include "templates.php"; ?>

						</div>

						<?php endif; ?>

						

						<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>

						<div id="maincolumn">

						<?php else: ?>

						<div id="maincolumn_full">

						<?php endif; ?>

							<div class="nopad">			

								<jdoc:include type="message" />

								<?php if($this->params->get('showComponent')) : ?>

									<jdoc:include type="component" />

								<?php endif; ?>

							</div>

						</div>

						

						<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>

						<div id="rightcolumn" style="float:right;">

							<jdoc:include type="modules" name="right" style="rounded" />								

						</div>

					<?php endif; ?>

					<div class="clr"></div>

				</div>		

			</div>

		</div>

		<!--center end-->

		

	</div>	

	<jdoc:include type="modules" name="debug" />

	<!--footer start-->

		<div id="footer">

			<div id="sgf">

				<div>

					<div style="text-align: center; padding: 10px 0 0;">

					</div> 

					<div style=" padding: 5px 0; text-align: center; color: #83A330;">

					</div>

				</div>

			</div>

		</div>

		<!--footer end-->

		

</body>

</html>

Open in new window

index.php
0
lazysheepmediaCommented:
have you changed your seo settings in admin>>configuration>>site?

the reason I ask is that your URL's are showing:

http://www.bluespier.com/index.php/maternity-manager.html

Just a stab in the dark :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thompsonwirelessCommented:
If you hit backspace you corrupted your index file.  Replace both index files and let us know if that worked.
0
bs_userAuthor Commented:
Thanks for the help this has resolved the issue.  Much appreciated
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Joomla

From novice to tech pro — start learning today.