This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
evolix
/
wiki
Watch
15
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
redirect pour forcer le https, si quelqu'un a une meilleure idée..
master
Daniel Jakots
3 years ago
parent
3c167c4919
commit
a9787a61c7
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
HowtoApache.md
+ 6
- 0
HowtoApache.md
View File
@ -494,6 +494,12 @@ RewriteRule ^/FoO.tXt /sub/ [L,R,NC]
# empêcher des requêtes POST sur une URL particulière
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^/foo.txt [L,F]
# Pour forcer le https
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R=permanent]
~~~
Pour supprimer un Query String avec une Rewrite Rule :
<
https:
/
/
www
.
philipphoffmann
.
de
/
blog
/
2012
/
08
/
16
/
how-to-discard-the-query-string-in-a-rewriterule-apache-mod_rewrite
/
>
Write
Preview
Loading…
Cancel
Save