Menu

[r13645]: / web / .htaccess  Maximize  Restore  History

Download this file

20 lines (17 with data), 550 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# ErrorDocument 401 error/401/
# ErrorDocument 403 error/403/
# ErrorDocument 404 error/404/
# ErrorDocument 410 error/410/
# This is already in the Apache 2.0 default configuration, but just to be sure..
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} ^(.*)\.shtml$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %1.php -f
RewriteCond %{REQUEST_METHOD} (GET|HEAD|POST)
RewriteRule ^(.*)\.shtml$ $1.php [L]
</IfModule>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.