Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Remove .html extensions when building project #1

Open
jmmccasland opened this issue Oct 30, 2018 · 0 comments
Open

[Feat]: Remove .html extensions when building project #1

jmmccasland opened this issue Oct 30, 2018 · 0 comments

Comments

@jmmccasland
Copy link

please excuse the lazy copy 🍝 😛

jm [1:26 PM]
hey! hope things are going well.

i built a site with your front-end-generator from TIY, wondering if you knew off the top of your head how to remove the `.html` extension of the urls within the project?

I've added an `.htcaccess` file with:
```RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]```

and renamed the hrefs to `/fileName` but I'm still getting `404`'s :thinking_face:

ryan [1:32 PM]
With apache you should be able to move your pages from `page.html` to `page/index.html` and it should remove the `.html` with that rule you have
If you make an issue on the qunit-broccoli project I can look into making a plugin that will do :point_up::skin-tone-4: when you run `build -e production`

jm [1:33 PM]
sweet, will do. :slightly_smiling_face:
thx!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant