Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cloning GS sites to new domains
#15
I'm moving a GetSimple site from one cPanel account to another (from test to production). The health check is fine.

I followed the practice of installing a new instance of GetSimple setting the domain url to the new one. I moved the /data, /plugins/ and /theme folders to the newly installed site.

Everything works as expected in the admin area. The default page (Home, index.php) appears when navigating to the site. All is good UNTIL the loading of any other page content. I get the (unfortunately) too familiar message: "We are sorry, but the page you are looking for does not exist."

I copied the .htaccess file in the root of my test site to the production site.
All file permissions are set to 755 for content and 644 for config files.

Code:
AddDefaultCharset UTF-8
Options -Indexes
DirectoryIndex index.php

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
<Files sitemap.xml>
        Order allow,deny
    Allow from all
    Satisfy All
</Files>

RewriteEngine on

# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+);(\d+)/?$ index.php?id=$1&page=$2 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([A-Za-z0-9-]+).php index.php?id=$1 [QSA,L]

# Enable GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>

# Expires Headers - 2678400s = 31 days
<ifmodule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 7200 seconds"
  ExpiresByType image/gif "access plus 2678400 seconds"
  ExpiresByType image/jpeg "access plus 2678400 seconds"
  ExpiresByType image/png "access plus 2678400 seconds"
  ExpiresByType text/css "access plus 518400 seconds"
  ExpiresByType text/javascript "access plus 2678400 seconds"
  ExpiresByType application/x-javascript "access plus 2678400 seconds"
</ifmodule>

# Cache Headers
<ifmodule mod_headers.c>
  # Cache specified files for 31 days
  <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
  Header set Cache-Control "max-age=2678400, public"
  </filesmatch>
  # Cache HTML files for a couple hours
  <filesmatch "\.(html|htm)$">
  Header set Cache-Control "max-age=7200, private, must-revalidate"
  </filesmatch>
  # Cache PDFs for a day
  <filesmatch "\.(pdf)$">
  Header set Cache-Control "max-age=86400, public"
  </filesmatch>
  # Cache Javascripts for 31 days
  <filesmatch "\.(js)$">
  Header set Cache-Control "max-age=2678400, private"
  </filesmatch>
</ifmodule>

My settings page uses a fancy URL structure of "%slug%.php"

Any guidance as to what I am missing would be appreciated.

It seems I always get hung up on these .htaccess files.
Reply


Messages In This Thread
Cloning GS sites to new domains - by grassfrog - 2012-03-24, 12:54:11
RE: Cloning GS sites to new domains - by jeremiah.holder - 2013-04-11, 08:10:22
RE: Cloning GS sites to new domains - by dblewett - 2013-04-11, 08:41:06
RE: Cloning GS sites to new domains - by shawn_a - 2013-04-11, 10:21:42
RE: Cloning GS sites to new domains - by shawn_a - 2013-04-11, 11:38:18
RE: Cloning GS sites to new domains - by shawn_a - 2013-04-11, 11:55:11
RE: Cloning GS sites to new domains - by shawn_a - 2013-04-11, 12:01:40
Cloning GS sites to new domains - by ccagle8 - 2012-03-24, 22:23:29
Cloning GS sites to new domains - by grassfrog - 2012-03-24, 23:12:30
Cloning GS sites to new domains - by marrco - 2012-03-24, 23:57:15
RE: Cloning GS sites to new domains - by hoemaco - 2019-09-03, 23:37:35
Cloning GS sites to new domains - by Mark Nielsen - 2012-03-25, 01:03:35
Cloning GS sites to new domains - by shawn_a - 2012-03-25, 01:25:43
Cloning GS sites to new domains - by grassfrog - 2012-03-25, 10:58:25
Cloning GS sites to new domains - by grassfrog - 2012-03-25, 12:17:03
Cloning GS sites to new domains - by Carlos - 2012-03-25, 17:03:20
Cloning GS sites to new domains - by grassfrog - 2012-03-26, 03:36:49
RE: Cloning GS sites to new domains - by jorre - 2013-03-21, 22:30:27



Users browsing this thread: 1 Guest(s)