I was working on a clients site and after trying to add redirects from www to non-www the site unfortunately broke.
I reverted back to the old .htaccess file and it is still not working.
I looked through many threads and tried removing slashes from index.php, and adding/removing rewrite base /, but still no luck.
My last lines of code in the htaccess file are
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
I tried changing the last rewrite rule to index.php/$1, index.php?/$1 and /index.php?/$1 from suggestions in other threads but still no luck.
I get a 'NOT FOUND' on the non-www version of the site now, and www. version of the site doesnt load any css,js, or image files.
Has anybdoy experienced anything similar or has any suggestions? Any help would be greatly appreciated