0

My htaccess is very big, because I upgraded, changed, optimized … it from EE1 to EE5. I am not sure what could be trashed. E.g. I have a rule somewhere to remove index.php, probably I don't need this anymore.

What is a best example for a htaccess for a standard-EE-install in EE5? Thanks!

1 Answer 1

3

You will need that rule, nothing has changed with the requirement of using mod_rewrite to remove the index.php portion of your URL for your site installation. You still need to direct all non-file/directory URLs to that index.php file as well. Please review the docs:

https://docs.expressionengine.com/latest/general/remove-index.php.html#1-create-an-htaccess-file

If you are looking to refactor your .htaccess file, I would start with the docs recommend set of rules, and add back any custom rules you have one by one, and eliminate relics from that file.

Without seeing what is actually in your .htaccess file, and without knowing your server setup, it's hard to recommend a blanket statement to remove any specific rules. But like I said, if you want to refactor, start with the docs recommended set of rules and add back in what you find you need.

1
  • Ah, I wasn't aware of this ressource in the EE-docs. Thanks!
    – BNetz
    Feb 11, 2019 at 21:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.