Link to home
Start Free TrialLog in
Avatar of Amarjot Singh
Amarjot SinghFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Joomla Migration

Having just moved my Joomla Site to another server I have lost all subpage content,

blog.singh90.co.uk/singh90/ (ignore URL - i have another question about virtualhosts)

I have a feeling its to do with the SEO friendly URLs etc but dont know how to resolve this.

Hosted on a Ubuntu 10.04 Server with LAMP installed.

Any help would be great

Thanks
Avatar of IanTh
IanTh
Flag of United Kingdom of Great Britain and Northern Ireland image

just a warning a friends web site got hacked with Joomla installed make sure your up to date his problem was a htaccess problem
Avatar of Amarjot Singh

ASKER

Thanks for the warning Ian,

I am currently running the lower version and I am running a new version in parallel, once I get the content showing on this version I will then try to migrate over to the newer version, But need to get the site working before I can do that so I have something to revert back to :(

Thanks
no prob his problem was his htaccess file was compromised by a security issue with joomla
Took a look at the htaccess file, couldnt see any issues in there. Thanks for the headsup
While moving joomla site to another site .Have you copied you .htaccess file to another server ?
Hi WebMatrixPune, I created everything including the .htaccess file.

I have opened it up to see if there is anything unique to the old server but cant find anything and therefore cant find the issue.

I have removed the file and as expected I cannot access any other pages on that site.
Avatar of Member_5340450
Member_5340450

Probably the issue is with the site parameter in configuration.php or the RewriteBase parameter in .htaccess. These will change when you change hosts.
Is there anything in particular i should look out for? I havent really looked at the configuration.php page but the htaccess file looks all ok
$live_site or something like that, as well as the tmp and log definitions
post your .htaccess?
Tmp and Logs are in the correct locations - for live site i have var $live_site = '';

.htaccess is as follows:

##
# @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

##  Can be commented out if causes errors, see notes above.
#Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
please uncomment # RewriteBase /
I tried that previously and it didnt help, just tried it again and still the same.

When uncommenting this line, i lose the content on the home page also. but when leaving it commented i atleast have homepage content.
did you try turning off SEF url and clearing cache?
Tried that also, to no avail looking rather worrying :(
not sure I understand the url remark in the first post, what exactly is the problem url?
I see - ok what is the sef status, are you using an add on at all?
Nope, using the built in SEF

SEF URLS YES
Use Apache Mod Rewrite YES
Add Suffix to URLS NO
ok let's turn off sef url's and clear joomla cache, let's see if that makes a difference.
Ill also need to rename .htaccess to htaccess.txt correct?
oh if that's not .htaccess now then the problem might be that sef is on in configuration but .htaccess doesn't exist. Turn sef off in configuration, don't change the file name get. Clear cache and see where that leads you.
No no, it is already .htaccess - i am asking, if i turn it off will i also need to change .htaccess back to htaccess.txt?

I am assuming so.
it's ignored if sef is off in config. so, no.
SEF is now off, same problem.
what is the physical path to the joomla installation?
/var/www/singh90
No htdocs or public_html?
Nope, this is a standard Ubuntu Linux Server with LAMP and SSH installed on. Hosted by myself.
Are you sure that the entire database made it over?
The articles are there, I can go into Article manager and see all of the text. I'm assuming it has, if it didnt then theres no way of recovering it as the host that i had it on previously has messed up my DBs - this was the backup I took just before my previous went down (thankfully)
Is it possible there's a condition in the template to show different info on the home page than the rest of the pages? Maybe the component is not being called on the inner pages.
I had assumed that, the only thing on the home that should be showing is a large banner that shows a snippet of each page and then 2 small boxes with text manually entered in them.

Im starting to think I might need to rebuild the site from scratch...
try a different template to test?
Tried default, same issue.
It's really not that the sub pages are missing. The front page content is missing too. Could you please go back to the default template and clear Joomla cache as well?
That seems to have done the trick, I can now see all the pages even with SEF on.

Im guessing this means its the template itself then? or possibly modules?
If you upload the index.php for the other template I might be able to tell you.
i've attached it - its the index.php file from the root of the template directory
There's no attachment but I need the one for the template subdir not the root.
sorry, thats what i meant. the root of the template subdirectory.

I've zipped it up incase the site doesnt like php uploads.
template.zip
What template is that from?
Rocket Theme Affinity - rt_affinity_j15
That's missing $frontpage_component, presumably there are other edits in the php files. That version of the template is corrupt.
Do you think its worth trying to repair, or should i build a new Joomla install (updated version)?
ASKER CERTIFIED SOLUTION
Avatar of Member_5340450
Member_5340450

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok cool, ill look to do that then.

Thanks for nailing that down for me. I will mark this as resolved for now :)

Cheers
Provided alot of help which was much needed