#ErrorDocument 401 https://royalcity.com.br/lojas/404/
#ErrorDocument 404 https://royalcity.com.br/lojas/404/
#ErrorDocument 403 https://royalcity.com.br/lojas/404/
#ErrorDocument 500 https://royalcity.com.br/lojas/404/

IndexIgnore *
Options -Indexes
Options +FollowSymLinks
RewriteEngine On 

#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteCond %{HTTPS} off
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d

RewriteRule ^/([^/]*)$ index.php
RewriteRule ^/([^/]*)/$ index.php

RewriteRule ^404/([^/]*)$ 404.php
RewriteRule ^404/([^/]*)/$ 404.php

RewriteRule ^sair/([^/]*)$ sair.php
RewriteRule ^sair/([^/]*)/$ sair.php

RewriteRule ^principal/([^/]*)$ principal.php
RewriteRule ^principal/([^/]*)/$ principal.php

RewriteRule ^meu-cadastro/([^/]*)$ meu-cadastro.php
RewriteRule ^meu-cadastro/([^/]*)/$ meu-cadastro.php

RewriteRule ^functions/env-login/([^/]*)$ functions/env-login.php
RewriteRule ^functions/env-login/([^/]*)/$ functions/env-login.php

RewriteRule ^listagem-lojas/([^/]*)$ listagem-lojas.php
RewriteRule ^listagem-lojas/([^/]*)/$ listagem-lojas.php

RewriteRule ^cadastrar-lojas/([^/]*)$ cadastrar-lojas.php
RewriteRule ^cadastrar-lojas/([^/]*)/$ cadastrar-lojas.php

RewriteRule ^deletar-lojas/([^/]*)$ del/deletar-lojas.php
RewriteRule ^deletar-lojas/([^/]*)/$ del/deletar-lojas.php

RewriteRule ^listagem-carganews/([^/]*)$ listagem-carganews.php
RewriteRule ^listagem-carganews/([^/]*)/$ listagem-carganews.php


RewriteRule ^info-codigo/([^/]*)/?$ info-codigo.php?id=$1 [QSA,L,NC]