Forum

Thread tagged as: Problem, Configuration, Hosting

Perch not working when moved form Local to Development Domain

Health check

Setup folder is present and should be deleted Perch is up to date PHP 5.6.30 is up to date MySQL 5.6.32-78.1 is up to date Image processing available Summary information

Perch: 3.1.2, PHP: 5.6.30, MySQL: 5.6.32-78.1, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (3.1.2), assets (3.1.2), categories (3.1.2), perch_forms (1.12) App runtimes: <?php $apps_list = [ 'perch_forms' ]; PERCH_LOGINPATH: /perch PERCH_PATH: /home1/silverpe/websites/tdc-website-test/perch PERCH_CORE: /home1/silverpe/websites/tdc-website-test/perch/core PERCH_RESFILEPATH: /home1/silverpe/websites/tdc-website-test/perch/resources Image manipulation: GD Imagick PHP limits: Max upload 64M, Max POST 64M, Memory: 256M, Total max file upload: 64M F1: 3b606135b33e6a102526838f4152a807 Resource folder writeable: Yes DOCUMENT_ROOT: /home1/silverpe/websites/tdc-website-test HTTP_HOST: www.tdcweb.alps-it.com REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

I initially built the site on MAMP, it works great. We have moved it to a development domain to test, before moving permanently to the live domain.

Unfortunately on the development domain, the Perch content is not displaying on the 'html' pages, but it is visible in the Perch Cpanel. All regions are complete and contain all the content that I input on the local server.

Bizarrely, every time I view a page, a new page with new regions, appears on the Pages Listing in Perch. As if I have to add the page content again from scratch.

Any help would be very gratefully received.

Many thanks in advance.

Ben Langridge

Ben Langridge 0 points

  • 2 years ago

Did you develop in a sub folder? On the current dev I am seeing a directory listing and there is no index page.

Please provide some more details of the directory structure you used while developing the site local.

https://www.tdcweb.alps-it.com/snowboarding/tignes/tignes_lessons_index.php

This page seem to be working. Is it showing any “Perch” content?

Hi Robert

Thanks for your response, interestingly, only the Shared Regions are working, on this page and all the others..

Are you using any rules in htaccess to remove page extensions or to do any routing?

     "Did you develop in a sub folder? On the current dev I am seeing a directory listing and there is no index page.

      Please provide some more details of the directory structure you used while developing the site local."
  • 5 mins ago, the site was displaying the index page, now I'm also only getting a directory listing and plenty of 404's - though not the 404 that I built

I developed locally in: https://localhost:8888/TDCSki/index.php or MAMP/htdocs/TDCSki/index.php

'Are you using any rules in htaccess to remove page extensions or to do any routing? '

  • Yes, I presume this was loaded to the development server..

<IfModule mod_rewrite.c>

RewriteEngine On

# This First Bit will handle the 301 redirects from nonwww to www RewriteCond %{HTTP_HOST} !^www.tdcski.com$ [NC] RewriteRule ^(.*)$ https://www.tdcski.com/$1 [R=301,NC]

# This Part will redirect both index.php or index.html to the domain root without creating any loops RewriteRule ^index.(php|html)$ / [R=301,L] #RewriteCond %{THE_REQUEST} ^GET\ /./index.(php|html)\ HTTP #RewriteRule (.)index.(php|html)$ /$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^GET\ /.\;.\ HTTP/ RewriteCond %{QUERY_STRING} !^$ RewriteRule .* https://www.tdcski.com%{REQUEST_URI}? [R=301,L]

  • loads of 301 redirects

</IfModule>

Ahh - it's set for the live server not the development!

www.tdcski.com not www.tdcweb.alps-it.com

Do you think this is the issue?

Which is developed in a sub directory.... one of the most popular mistakes people make.

You could search for solutions previously given to others who developed in a sub directory and fix this.

Thanks very much Robert

Normally I would not do any fancy rules in the htaccess before I have the site functioning in its basics on the dev, then I apply rules after testing. You may need to scale back the rules. Also make sure your rules are pointing to the correct url, otherwise you may be fighting this all day. :(

Thanks Robert

Unfortunately I don't control the server, I just sent all the files to the guys who do. To be honest I'm not even sure if they uploaded the htaccess file which I built for the live server. I doubt they did, because they know their stuff.

I've been looking for solutions in the forum for people who developed in a sub-directory, but many of the threads are old and discontinued.

Is there a relative quick fix or do I need to start from scratch? Could you possibly point me in the direction?

Many thanks again

Alone Whatsapp DP In this article, we have come up with Stylish Girls Profile Pictures & WhatsApp DP Images 2018! https://techienize.com/best-whatsapp-dp-images/