Skip to content

Commit 88241a0

Browse files
committed
Updated .htaccess
1 parent 269a140 commit 88241a0

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.htaccess

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,18 @@ RewriteEngine on
33
RewriteCond %{REQUEST_FILENAME} !-d
44
RewriteCond %{REQUEST_FILENAME}\.php -f
55
RewriteRule ^(.*)$ $1.php
6+
67
RewriteCond %{REQUEST_FILENAME} !-f
78
ReWriteRule ^(.*)$ index.php [L,QSA]
8-
#disable opcache
9-
#RewriteBase /
10-
#RewriteCond %{REQUEST_FILENAME} !-f
11-
#RewriteCond %{REQUEST_FILENAME} !-d
12-
#RewriteRule ^(.*)$ http://localhost/generic-php/rout/index.php?url=$1 [L,QSA]
9+
1310
DirectoryIndex index.php
14-
#<IfModule mod_php5.c>
15-
php_flag opcache.enable Off
16-
#</IfModule>
11+
#disable opcache
12+
#php_flag opcache.enable Off
13+
1714
#used for ssl redirect
1815
#RewriteCond %{SERVER_PORT} 80
1916
#RewriteRule ^(.*)$ https://www.programmingacademia.com/$1 [R=301,L]
2017

21-
ErrorDocument 403 /error/error?err=403
22-
ErrorDocument 404 /error/error?err=404
23-
ErrorDocument 405 /error/error?err=405
24-
ErrorDocument 408 /error/error?err=408
25-
ErrorDocument 415 /error/error?err=415
26-
ErrorDocument 500 /error/error?err=500
27-
ErrorDocument 501 /error/error?err=501
28-
ErrorDocument 505 /error/error?err=505
29-
3018
#allow CORS
3119
<IfModule mod_headers.c>
3220
Header set Access-Control-Allow-Origin "*"

0 commit comments

Comments
 (0)