Drop trailing ? in requests for html files in .htaccess

Suoritettu Julkaistu 7 vuotta sitten Maksettu toimituksen yhteydessä
Suoritettu Maksettu toimituksen yhteydessä

I need a way to drop ANY queries to files ending with .html — so /directory/[url removed, login to view] is read as /directory/[url removed, login to view], etc. It cannot, however, interfere with php files, e.g. /directory/[url removed, login to view] stays "as is."

It has to be good at the top directory and all levels of subdirectories, using the single top .htaccess file. Apache 2.

Asking any questions that I’ve answered above, such as “Are you using Wordpress?" and "Why don't you do it in php?" will cause me to move on.

Apache

Projektin tunnus: #13825002

Tietoa projektista

2 ehdotusta Etäprojekti Aktiivinen 7 vuotta sitten

Myönnetty käyttäjälle:

MimiFL

Hi, i m serious freelancer with 100% completion rate and i believe i can help you. I believe to achieve this you only need on htaccess line, basically you want to regex match only the html files and redirect to the sam Lisää

$30 USD 0 päivässä
(1 arvostelu)
1.0

2 freelanceria on tarjonnut keskimäärin $59 tähän työhön

terrificfreak

Hello, I am a linux administrator. I have worked on centos, ubuntu, opensuse, debian etc. I have been working as devops for the last 7 years. I have experience in configuring and optimizing web servers (nginx + apache Lisää

$88 USD 0 päivässä
(9 arvostelua)
3.7