File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed
Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -3,30 +3,18 @@ RewriteEngine on
33RewriteCond %{REQUEST_FILENAME} !-d
44RewriteCond %{REQUEST_FILENAME}\.php -f
55RewriteRule ^(.*)$ $1.php
6+
67RewriteCond %{REQUEST_FILENAME} !-f
78ReWriteRule ^(.*)$ 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+
1310DirectoryIndex 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 "*"
You can’t perform that action at this time.
0 commit comments