I run into the same error on each project setup with CraftCMS. So did I this time… again…
First of all: Yes, I seem to be a slow learner. And therefore I can't memorize to rename the htaccess file before calling the Craft installer page. ;)
When downloading CraftCMS the .htaccess
file is called htaccess
(without leading dot).
So, whenever I setup my Craft projects I have to rename the file that is located in /public.
But I always forget about that. I always run into the problem that I get a "503 Service Unavailable" on requesting my new website using Craft. On requesting the admin panel (to start the installer) I get a "404 Not Found". Then I only wonder and ask myself if I have made something terribly wrong…
Only after some hard thinking about what's going on there I come accross the solution:
Rename htaccess
to .htaccess
. Apache is not recognizing the one without dot.
This is happening always (and by "always" I mean each and every single time I start working on a new Craft project) to me and it's totally bothering me.
Why can't Craft jsut come with a correctly named .htaccess
file?
Is the public htaccess
file maybe named without the leading dot to not be hidden on operating systems like MacOSX? So you can copy files from folder to folder without missing hidden ones?
I mean, Craft is made for developers. Come on, guys. Developers should know to have in mind hidden files when copying them to a new project's destination.
So, why just not delivering Craft with .htaccess
in /public folder instead of htaccess
?
I guarantee you guys that I will forget about the renaming again before calling the URL of my next Craft project.