-
Notifications
You must be signed in to change notification settings - Fork 11
/
.htaccess
21 lines (16 loc) · 645 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /payroll/
# Remove .php extension with and without trailing slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L,QSA]
RewriteCond %{QUERY_STRING} (.*)/$
RewriteRule ^(.*)$ /$1?%1 [L,R=301]
RewriteRule ^pay-salary/(.*)/(.*)/(.*)/ manage-salary.php?emp_code=$1&month=$2&year=$3
RewriteRule ^pay-salary/(.*)/(.*)/(.*) manage-salary.php?emp_code=$1&month=$2&year=$3
IndexIgnore *
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ 404.php [L]