You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
882 B
25 lines
882 B
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME}\.php -f
|
|
RewriteRule ^(.*)$ $1.php [L]
|
|
|
|
RewriteRule ^admin/login$ admin/login.php [L,QSA]
|
|
RewriteRule ^admin/forgot$ admin/forgot.php [L,QSA]
|
|
RewriteRule ^admin/([a-zA-Z0-9_-]+)$ admin/index.php?name=$1 [L,QSA]
|
|
|
|
RewriteRule ^payment-link/([a-zA-Z0-9_-]+)$ payment-link/index.php?name=$1 [L,QSA]
|
|
RewriteRule ^invoice/([a-zA-Z0-9_-]+)$ invoice/index.php?name=$1 [L,QSA]
|
|
RewriteRule ^api/([a-zA-Z0-9_-]+)$ api/index.php?name=$1 [L,QSA]
|
|
RewriteRule ^payment/([a-zA-Z0-9_-]+)$ payment/index.php?name=$1 [L,QSA]
|
|
RewriteRule ^install/([a-zA-Z0-9_-]+)$ install/index.php?name=$1 [L,QSA]
|
|
|
|
# Custom error documents
|
|
ErrorDocument 404 /error.php
|
|
ErrorDocument 500 /error.php
|
|
ErrorDocument 403 /error.php
|
|
|
|
|
|
<FilesMatch "\.(ttf|otf|eot|woff|woff2)$">
|
|
Header set Access-Control-Allow-Origin "*"
|
|
</FilesMatch>
|