-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
41 lines (38 loc) · 1.72 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^index.html$ index.php [L]
RewriteRule ^article-([0-9]+)$ ?action=readPost&id=$1
RewriteRule ^articles ?action=postsListView
RewriteRule ^inscription ?action=signUpView
RewriteRule ^mot-de-passe-oublie ?action=forgotPasswordView
RewriteRule ^redaction-article ?action=addPostView
RewriteRule ^modifier-article-([0-9]+)$ ?action=editPostView&id=$1
RewriteRule ^connexion ?action=signInView
RewriteRule ^connecter ?action=signIn
RewriteRule ^deconnexion ?action=signOut
RewriteRule ^profile-([0-9]+)$ ?action=getUser&id=$1
RewriteRule ^modifie-article-([0-9]+)$ ?action=editPost&id=$1
RewriteRule ^valider-commentaire-([0-9]+)$ ?action=validateComment&id=$1
RewriteRule ^valider-compte-([0-9]+)$ ?action=validateUser&id=$1
RewriteRule ^supprimer-compte-([0-9]+)$ ?action=deleteUser&id=$1
RewriteRule ^comptes-([0-9]+)$ ?action=getUsersView&id=$1
RewriteRule ^comptes-a-valider ?action=getPendingUsersView
RewriteRule ^commentaires-a-valider ?action=getPendingComments
RewriteRule ^ecrire-article ?action=addPost
RewriteRule ^redefinir-mot-de-passe ?action=forgotPassword
RewriteRule ^supprimer-article-([0-9]+)$ ?action=deletePost&id=$1
RewriteRule ^ajouter-commentaire-([0-9]+)$ ?action=addComment&id=$1
RewriteRule ^supprimer-commentaire-([0-9]+)$ ?action=deleteComment&id=$1
RewriteRule ^valider-mot-de-passe ?action=resetPassword
RewriteRule ^s-inscrire ?action=signUp
RewriteRule ^redefinition-mot-de-passe-(.+)$ ?action=resetPasswordView&email=$1
RewriteRule ^contacter ?action=contact
RewriteRule ^contact ?action=contactView
RewriteRule ^cv ?action=cvView
RewriteRule ^accueil ?action=homeView
<FilesMatch composer.json>
Deny from all
</FilesMatch>
<FilesMatch README.md>
Deny from all
</FilesMatch>