Question:
How do I make the html website pages look like “/confirm” instead of “/confirm.html”
Repl link:
https://replit.com/@RedactedCode/Delta5-Offical
code snippet
Question:
How do I make the html website pages look like “/confirm” instead of “/confirm.html”
Repl link:
https://replit.com/@RedactedCode/Delta5-Offical
code snippet
Hi @RedactedCode165926, welcome to the community!
You can create a folder called confirm
and add a file called index.html
inside of it. Then just put in your HTML and you’re done!
Thank you so much! I’ll try it out!!
Thank you! I’ll try it out
You Can Use Node Express To Remove .html
You could try this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /html/(.*).html\ HTTP/
RewriteRule .* http://localhost/html/%1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /html/(.*)\ HTTP/
RewriteRule .* %1.html [L]
</IfModule>
That would not be a usable solution; this is for HTML Repls, which don’t let you use XML configuration (or whatever that is).
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.