.htaccess RewriteRule for HTTP只有一页不理解

时间:2018-06-13 16:14:01

标签: .htaccess mod-rewrite

我想仅针对与此网址匹配的网页强制使用HTTP:ws/070815yU7HrioUQQ97/default-version/epos/test

所以我编辑.htaccess就像那样:

Options +FollowSymlinks

DirectoryIndex routes.php
RewriteEngine on

RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !/epos(.*)
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(fids|epos|monitor|dashboard|statistiques|vdi|exports|sumup|produits|boutiques|boutons|stocks|depots|inventories|invoices|locations|compte|connect|unlog|forgot-password|users|rights|calendar|invitations) routes.php [QSA,L]


RewriteRule ^home$   connexion.php [L]
RewriteRule ^connexion(.*)$   connexion$1 [L]
RewriteRule ^Documents(.*)$   Documents$1 [L]

所以:   - 每个http都强制到https(这没关系)   - 当我转到http://xxx.xy/ws/070815yU7HrioUQQ97/default-version/epos/test时,它会将网址转换为:https://xxx.xy/ws/070815yU7HrioUQQ97/default-version/routes.php

但我想转到http://xxx.xy/ws/070815yU7HrioUQQ97/default-version/epos/test

0 个答案:

没有答案