Drop trailing ? in requests for html files in .htaccess

已完成 已发布的 7 年前 货到付款
已完成 货到付款

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.

阿帕奇

项目ID: #13825002

关于项目

2个方案 远程项目 活跃的7 年前

授予:

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 更多

$30 USD 在0天内
(1条评论)
1.0

有2名威客正在参与此工作的竞标,均价$59/小时

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 更多

$88 USD 在0天内
(9条评论)
3.7