We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13226
    • 953 Posts
    Upload the attached file to your root and to the manager folder

    Rename to php.ini

    Replace your .htaccess file with your original copy - hopefully you made a copy
      • 7527
      • 437 Posts
      Thanks I have now done that. I still get the 500 error, is that just due to cache and if so how do I clear it? My original .htaccess is now back to this:

      # For full documentation and other suggested options, please see
      # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
      # including for unexpected logouts in multi-server/cloud environments
      # and especially for the first three commented out rules
      
      #php_flag register_globals Off
      #AddDefaultCharset utf-8
      #php_value date.timezone Europe/Moscow
      
      Options +FollowSymlinks
      RewriteEngine On
      RewriteBase / 
      
      
      # Fix Apache internal dummy connections from breaking [(site_url)] cache
      RewriteCond %{REMOTE_ADDR} ^2\.220\.239\.47*$ 
      RewriteRule .* - [F,L]
      
      # Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
      #RewriteCond %{HTTP_HOST} .
      #RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
      #RewriteRule (.*) http://www.example.com/$1 [R=301,L]
      
      # Exclude /assets and /manager directories and images from rewrite rules
      RewriteRule ^(manager|assets)/*$ - [L]
      RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
      RewriteCond %{QUERY_STRING} ^q=(.*)\.html$
      RewriteRule (.*) http://www.pawsforwildlife.co.uk/%1.php? [R=301,L]
      # For Friendly URLs
      RewriteCond %{REQUEST_URL} !^/maintenance\.php$
      RewriteRule ^(.*)$ /maintenance.php [L]
      
      # Reduce server overhead by enabling output compression if supported.
      #php_flag zlib.output_compression On
      #php_value zlib.output_compression_level 5
        www.PawsForWildlife.co.uk
        www.Borntobrick.co.uk
        • 13226
        • 953 Posts
        You have other stuff in your .htaccess file that isnt in the original

        This is a copy of mine from a 1.0.4 install:

        Options +FollowSymlinks
        RewriteEngine On
        RewriteBase /
        
        # Fix Apache internal dummy connections from breaking [(site_url)] cache
        RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
        RewriteRule .* - [F,L]
        
        # RewriteCond %{HTTP_HOST} ^domain.co.uk [NC]
        # RewriteRule ^(.*) http://www.domain.co.uk/$1 [R=301,L]
        
        # Exclude /assets and /manager directories from rewrite rules
        RewriteRule ^(manager|assets) - [L]
        
        # php_value date.timezone "Europe/London"
        
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_URI} !(.*[^/,\.])$
        RewriteRule ^(.*)[/\.,]$ /$1 [L,R=301]
        
        RewriteCond cache%{REQUEST_URI}.html -F
        RewriteRule .* cache%{REQUEST_URI}.html [L,QSA]
        
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
        
        # Run PHP5 on 1and1 to stop register globals warning
        # AddType x-mapp-php5 .php


        This fully works on a 1&1 server with the php.ini file I posted

        I can PM you the link so that you can see if you want to
          • 7527
          • 437 Posts
          Ok thanks, If i changed my htaccess for that one would it be correct?
            www.PawsForWildlife.co.uk
            www.Borntobrick.co.uk
            • 13226
            • 953 Posts
            Cache files shouldn't be the problem, but if you want to clear the cache files manualy: FTP to "assets/cache/"

            In the folder find and delete all files like: docid_1.pageCache.php, docid_2.pageCache.php

            There are also: siteCache.idx.php + sitePublishing.idx.php

            The last two can also be deleted - they will be re-built by MODX when you login via the manager.

            If you delete the last two and goto the front end without previously logging in, you will get an error - after deleting, login so that they are recreated.
              • 13226
              • 953 Posts
              Quote from: distant_smile at Apr 25, 2014, 03:45 PM
              Ok thanks, If i changed my htaccess for that one would it be correct?

              No guarantee - rename your original .htaccess to ht.access

              Upload a new .htaccess containing the code I posted and give it a try
                • 13226
                • 953 Posts
                Seems to be working
                  • 7527
                  • 437 Posts
                  I have just copied your htaccess to my htaccess file and my website is back, and 1and1 is now on PHP 5.4. Is it possible that I have lost anything by copying your htaccess file?
                    www.PawsForWildlife.co.uk
                    www.Borntobrick.co.uk
                    • 13226
                    • 953 Posts
                    yes

                    The problem is coming from your .htaccess file

                    This will be monoton, but comment out your .htaccess file line for line until you find out what is causing the problem

                    Once you have found the problem, you can rectify it

                    If all fails - you now have a copy of mine and that works
                      • 7527
                      • 437 Posts
                      Ok seems like clearing the cache has now allowed me access to the manager so I can now continue my work. Doesn't appear to be any problems with submitting your htaccess in place of mine so fingers crossed. Thank you so much for the help it's very much appreciated

                      Regards DS (happy now!)
                        www.PawsForWildlife.co.uk
                        www.Borntobrick.co.uk