Hi, I’m running an old EE site, using v3.5.17. It has been working fine for four years (when I upgraded from EE 2.x), but suddenly my site is not connecting to the main PHP.
I thought it might be an incompatibility with my host’s PHP, which updates every now and then. However, I see that it’s running PHP 7.2, which should be compatible. And yet it’s not connecting.
Thoughts?
I’ve tried 7.1 Someone suggested reverting to 5.6 in another thread. I tried that. Yet the problem is the same—a 404:
Not Found
The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
For some reason, my EE (renamed) index.php, plus every page after [index.php] in a URL, is not being accessed.
My EE site was working fine a couple weeks ago, and then suddenly it wasn’t. I only suspected PHP might have something to do with it since my host updates versions from time to time, but perhaps it’s not a PHP version issue at all. Anyone have the same issue where all files within EE are not being found/accessed?
Hi WA Design,
Here:
DirectoryIndex tgt_v3 index.html index.htm index.php tgt_v3.php
<Files tgt_v3>
ForceType application/x-httpd-php
</Files>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http?://(www\.)?MyURL.com/?.*$ [NC]
#AddHandler application/x-httpd-php .php .html
This is the way it’s been since it was working. I don’t know why it isn’t anymore. Thoughts?
Thanks!
Hi EEyartee,
Thanks for posting this. Are you seeing any errors? If so, if you could post them that would help us to point you in the right direction.
If not, you probably best off opening a support ticket
Thanks,
-Tom Jaeger
Hi EEyartee
Try this…
<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php from ExpressionEngine URLs
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
#First rewrite any request to the wrong domain to use the correct one (here www.)
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#Now, rewrite to HTTPS:
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.