Is there any way to configure DocPad generate pages without extension, so hosting as static site in url it will look like: http://mysite.com/page1/ ?
Is there any way to configure DocPad generate pages without extension, so hosting as
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, but in a different way.
The cleanurls plugin when generated for a static environment (so
docpad generate --env static) will output saypages/welcome.htmlaspages/welcome/index.htmlwhich accomplishes what you’re after – which is you can accesspages/welcomein your browser no worries. Document URLs will also be updated to reflect this.The issue of just outputting
pages/welcomewithout the extension is that then the server is not aware of the mime type of the file which the browser often needs to know how to process the file correctly.