-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
53 lines (31 loc) · 1.5 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
42
43
44
45
46
47
48
49
50
51
52
53
<IfModule mod_rewrite.c>
RewriteEngine On
# Traz o https:// ao endereço
# RewriteCond %{HTTPS} !=on
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Traz o www ao endereço
rewritecond %{http_host} ^stylusbeauty.com.br [nc]
rewriterule ^(.*)$ http://www.stylusbeauty.com.br/$1 [r=301,nc]
# Página de login, cadastro e busca
RewriteRule ^meuspedidos/?$ meuspedidos.php [NC,L]
RewriteRule ^comocomprar/?$ comocomprar.php [NC,L]
RewriteRule ^seguranca/?$ seguranca.php [NC,L]
RewriteRule ^contato/?$ contato.php [NC,L]
RewriteRule ^quemsomos/?$ quemsomos.php [NC,L]
RewriteRule ^admin/?$ admin.php [NC,L]
RewriteRule ^signin/?$ signin.php [NC,L]
RewriteRule ^search/?$ search.php [NC,L]
RewriteRule ^terms/?$ terms.php [NC,L]
RewriteRule ^control/?$ control.php [NC,L]
RewriteRule ^carrinho/?$ carrinho.php [NC,L]
RewriteRule ^checkout/?$ checkout.php [NC,L]
RewriteRule ^payment/?$ payment.php [NC,L]
RewriteRule ^home/?$ home.php [NC,L]
# Página de exibição de uma loja
RewriteRule ^([a-z0-9-]+)/?$ store.php?catg=$1 [NC]
RewriteRule ^([a-z0-9-]+)/([a-z0-9-]+)/?$ store.php?catg=$1&subcatg=$2 [NC]
RewriteRule ^([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/?$ store.php?catg=$1&subcatg=2&prod=$3 [NC]
# RewriteRule ^([a-z0-9-]+)/?$ details.php?prod=$1 [NC]
# RewriteRule ^([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/?$ store.php?catg=$1&subcatg=2&prod=$3 [NC]
# RewriteRule ^([a-z0-9-]+)/([a-z0-9-]+)/?$ details.php?catg=$1&subcatg=$2 [NC]
</IfModule>