ThemePackagerComponent icon indicating copy to clipboard operation
ThemePackagerComponent copied to clipboard

How do I add my .htaccess?

Open DESIGNfromWITHIN opened this issue 10 years ago • 2 comments

Any strategy for this? Can I activate Friendly URL's by default and add a .htaccess? It is not added right now...

DESIGNfromWITHIN avatar Apr 18 '14 15:04 DESIGNfromWITHIN

Hey Menno,

If this were possible, it wouldn't work in all cases, as some people are using Nginx or IIS (or potential Apache configurations where the .htaccess might not work). Would including an ht.access or similar file, along with instructions on enabling FURLs and your rules, be a workable solution? Maybe even a file containing the Nginx and IIS rules as well? Ultimately, these transport packages are meant to convey files and database objects, but they can't really define server behavior in a predictable fashion.

netProphET avatar Apr 22 '14 13:04 netProphET

How about using a Static Resources to generate a .htaccess file and including the Resource in the package?

adamwintle avatar Apr 22 '14 15:04 adamwintle