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

Remove ".html" from all URLs #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remove ".html" from all URLs #5

wants to merge 1 commit into from

Conversation

ejv2
Copy link

@ejv2 ejv2 commented May 28, 2020

Closes #3

I've added a .htaccess file which rewrites any request without an extension to *.html. This only works for HTML files, so assets still work the same.

I also refactored the project to change all URL links to the new system. So, the extensions should now be completely hidden.

For example, this is what the account URL now looks like:

Account URL

While I was refactoring, the editor reformatted all your HTML, sorry about that.

Added an HTACCESS file to rewrite URLs without an extension to have one
This only works with HTML files, so all assets still work the same.

I also refactored the project to set all links to use the new rewritten URLs
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

Successfully merging this pull request may close these issues.

Remove .html from URL
1 participant