-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
34 lines (27 loc) · 1.07 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
<IfModule mod_rewrite.c>
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
## hide .php extension snippet
# To externally redirect /dir/foo.php to /dir/foo
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R=301,L]
# To internally forward /dir/foo to /dir/foo.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^(.*?)/?$ $1.php [L]
</IfModule>
Redirect 301 /aboutus.html /About-Us.php
Redirect 301 /contactus.html /Contact-Us.php
Redirect 301 /index.html /index.php
Redirect 301 /orderservices.html /Services.php
Redirect 301 /ourproducts.html /Products.php
Redirect 301 /termsofuse.html /Terms.php
Redirect 301 /Liquid-Waste-Environmental /Services
Redirect 301 /Sharps-Home-Disposal /Sharps-Disposal
Redirect 301 /Who-We-Serve /waste-disposal-industries
Redirect 301 /Eco-Friendly /Eco-Friendly-Waste-Disposal
Redirect 301 /Safety /safe-disposal-of-medical-waste
Redirect 301 /Compliance-Training-Program /medical-waste-compliance-training
ErrorDocument 404 http://gicmd.com/404.php