Skip to content

Remove ".html" from all URLs - #5

Open
ejv2 wants to merge 1 commit into
0xB9:masterfrom
ejv2:master
Open

Remove ".html" from all URLs#5
ejv2 wants to merge 1 commit into
0xB9:masterfrom
ejv2:master

Conversation

@ejv2

@ejv2 ejv2 commented May 28, 2020

Copy link
Copy Markdown

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