Forum

I’m in the process of creating a website for my client using Perch 2.8.17.

This has been running smoothly on Mac OS X 10.11.1 El Capitan using MAMP Pro 3.4 (PHP version 5.4.42).

I’ve FTP'ed the website/CMS files to a Heart Internet Premium Web Hosting account and the SQL file to the remote database via phpMyAdmin.

The server runs on Apache 2.4.12 with PHP 5.4.45 and MySQL 5.5.5-10.0.22-MariaDB.

The Perch Config file has been set to the database connection details of the MySQL database set-up on the Heart Internet account and the CMS is able to be loaded, logged into and accessed from the browser - so all is good there.

I am however having trouble getting the htaccess file to work for displaying the actual pages of the website itself (not the CMS).

The htaccess file is placed in the root of the public_html directory along with the perch directory and index.php file - exactly the same set-up as on my local development installation with MAMP Pro.

When accessing the remote website via the browser the home page displays but subsequent pages will not load, instead a Not Found screen is displayed for all non-home pages.

Here are the htaccess rules that I use on my MAMP Pro installation (that is able to access pages without any issue or complaint):

These however don’t work on the Heart Internet hosting account (where htaccess/mod_rewrite is enabled) and I was wondering if you might be able to provide any suggestions/guidance on why this might be?

I have logged into and checked in the remote Perch CMS and ALL pages are there (I.e. gallery, services etc).

Is there something I am missing/have forgotten to do when transferring the website/CMS to a remote server? I believe the problem is htaccess/rewrite rule related but I'm an absolute amateur with htaccess/mod_rewrite I’m afraid so I appreciate any assistance you can provide with this query as it’s driving me a little nuts!