I'd like to run Automad from a subfolder on my server to keep the root more tidy (but also have the subfolder name stripped out of the URL). In another flat file CMS that I've used this has been handled by setting RewriteBase to the subfolder in the .htaccess file. Is the procedure the same in Automad? Basically, I am looking for this path:

mydomain.com/automad/about

to give me the page URL

mydomain.com/about

Is there a way to make that work?

Kurt

  • mad replied to this.

    Kurt8 Hi, this is a server setting that has to be configured on your hosting platform. Those things have nothing to do with a CMS. You have to configure your site in that way that the automad directory is the document root of the domain. In general, any application — here the CMS — needs an entrypoint that is reachable by the requested URL.

    Even though you could probably make that redirect work by putting a .htaccess in your current root directory in order to redirect to the automad directory, it would be much cleaner to set up the document root correctly in the first place.

    Thanks for the quick reply. I'll check with my your hosting platform about the best way to set this up.

    It worked. So easy to set up on the hosting platform level. Not sure why I never tried this before. Thanks!

    • mad replied to this.
    • mad likes this.

      Newest Discussions