I'm not an expert in rewrite rules but on Saturday and Sunday I figured I'd give EA4 a try because I wanted to eventually move over to php 7.
After migration on Saturday, I noticed at least one rewrite rule was not longer working and this forced me go back to EA3, which was smooth (thankfully). I tried again on Sunday morning, I figured I'd try to do some troubleshooting. The site is based on Joomla 3.6 series, I first noticed the problem when the URIs were no longer redirecting to lowercase:
EA3 rule:
EA4 rule after migration:
Here is a second example:
EA3 Rule:
EA4 rule after migration:
Again, I'm no expert on rewrite rules. I wondered if somehow the .htaccess file got corrupted during the migration. Unfortunately, when I replaced the EA4file with a backup I had, the lowercase rule still didn't work. I wound up going back to EA3.
After migration on Saturday, I noticed at least one rewrite rule was not longer working and this forced me go back to EA3, which was smooth (thankfully). I tried again on Sunday morning, I figured I'd try to do some troubleshooting. The site is based on Joomla 3.6 series, I first noticed the problem when the URIs were no longer redirecting to lowercase:
EA3 rule:
Code:
# To Lower case
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]
Code:
# To Lower case
RewriteCond %{REQUEST_URI} [A-Z]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) ${lc:$1} [R=301,L]
EA3 Rule:
Code:
# Begin - Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Code:
# Begin - Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]