[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 704
  • Last Modified:

Moving Joomla to new server

I have moved the below Joomla website to a new server and now I am just getting lots of error:


What do they mean and how do I resolve? I think the previous server uses a lower version of php.

Also the Joomla website on the previously server was in a "2012test" folder instead on the root. This was the previous .htaccess file code:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
AuthName www.designer-kitchens.co.uk
AuthUserFile /home/virtual/site42/fst/var/www/html/_vti_pvt/service.pwd
AuthGroupFile /home/virtual/site42/fst/var/www/html/_vti_pvt/service.grp

######## Joomla ############
# Added by Monty
Options +FollowSymLinks
RewriteEngine On
# End comment added on 2011-11-21
RewriteBase /

# Add trailing slash if path does not contain a period or end with a slash
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://designer-kitchens.co.uk/$1/ [R=301,L]

#Change http://designer-kitchens.co.uk to http://www.designer-kitchens.co.uk (Optional)
RewriteCond %{HTTP_HOST} ^designer-kitchens.co.uk$
RewriteRule ^/?(.*)$ http://www.designer-kitchens.co.uk/$1 [R=301,L]
#### Rewrites http://www.designer-kitchens.co.uk/2012test to http://www.designer-kitchens.co.uk/
## Added this to allow existing files and directories to work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
## Now the rewrite of subdir to rootdir
RewriteCond %{REQUEST_URI} !^/2012test
# Added to include comment by Patrick on 2011-10-14 see comment below
RewriteRule ^$ 2012test/index.php [L]
# End comment added on 2011-10-14 ... 
RewriteRule ^(.*)$ 2012test/$1 [L]

RewriteCond %{REQUEST_URI} !^/2012test
RewriteRule ^(.*)$ 2012test/$1 [L]

Open in new window

What do I need to remove / change to my this website work in my root folder on the new server?
  • 2
1 Solution
Ray PaseurCommented:
That will probably be a good looking web site once we get rid of the messages!  

The messages occur because the PHP installation is set to tell you about violations of E_STRICT programming standards.  The PHP error reporting settings have changed a bit recently in an effort to force PHP programmers to adopt some better coding practices.  Apparently Joomla is a bit behind in adopting these coding practices.

Find your PHP settings for error reporting (maybe .htaccess, maybe php.ini) and change to use this:

error_reporting(E_ALL ^ E_STRICT)

There may be other changes needed but that should help a great deal.
petewinterAuthor Commented:
Many thanks. Problem solved.
Ray PaseurCommented:
Yeah, that looks a zillion times better.  You might still want to check out the validator:

It looks like there is an HTML4 Doctype, but the site also uses HTML5 attributes in some of the tags.  It's not a big deal, but setting the Doctype correctly may help with cross-browser issues, especially in things like jQuery.

Thanks for the points and thanks for using EE, ~Ray

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now