Jump to content

-snip-

With the standard configs, a webserver will automatically look for an index.html or index.php file.

Just rename whatever.html to index.html and link mysite.com/whatever and it will bring you to the index.html in the folder whatever.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
https://linustechtips.com/topic/382825-remove-html/#findComment-5168655
Share on other sites

Link to post
Share on other sites

It is possible waaaay easier with the method above.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
https://linustechtips.com/topic/382825-remove-html/#findComment-5168659
Share on other sites

Link to post
Share on other sites

What have you tried? My method or what @Momkai suggested?

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
https://linustechtips.com/topic/382825-remove-html/#findComment-5168683
Share on other sites

Link to post
Share on other sites

Oops, Momkai's

Well what I suggested should work just fine. I have done it with my own site as well

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
https://linustechtips.com/topic/382825-remove-html/#findComment-5168705
Share on other sites

Link to post
Share on other sites

But if i have a sub directory it's not going to work. such as /stuff with 5 things in it. 

Yeah, you would have to make sub folder for those files I guess.

Have yet to find a good way of doing that I guess.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
https://linustechtips.com/topic/382825-remove-html/#findComment-5168746
Share on other sites

Link to post
Share on other sites

@JamesFitz1223 try
 

RRewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME}.html -fRewriteRule ^(.*)$ $1.html [NC,L]

Intel i7 6700k - MSI Z17A0 Gaming M5 - 4 x 8Gb Kingston HyperX 2666Mhz - MSI GTX 970 - Samsung Pro 128Gb - WD 3Tb - 750 Watt MS-TECH

Link to comment
https://linustechtips.com/topic/382825-remove-html/#findComment-5168747
Share on other sites

Link to post
Share on other sites

@JamesFitz1223 try

RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L, QSA]

Intel i7 6700k - MSI Z17A0 Gaming M5 - 4 x 8Gb Kingston HyperX 2666Mhz - MSI GTX 970 - Samsung Pro 128Gb - WD 3Tb - 750 Watt MS-TECH

Link to comment
https://linustechtips.com/topic/382825-remove-html/#findComment-5168842
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×