We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a741991 commit 1f54b3bCopy full SHA for 1f54b3b
exec/setup.php
@@ -60,6 +60,23 @@ function print_line($text, int $multiplier = 1)
60
$fp = fopen($file, "w");
61
fwrite($fp, $template);
62
fclose($fp);
63
+// Set to .htaccess
64
+$file = __DIR__ . "/../.htaccess";
65
+$fp = fopen($file, "w");
66
+fwrite($fp, "RewriteEngine On
67
+RewriteBase " . $vars['APP_ROOT'] . "/
68
+
69
+RewriteCond %{DOCUMENT_ROOT}/assets/$1 -f
70
+RewriteRule ^(.*)$ assets/$1 [L]
71
72
+RewriteCond %{DOCUMENT_ROOT}/node_modules/$1 -f
73
+RewriteRule ^(.*)$ node_modules/$1 [L]
74
75
+RewriteCond %{THE_REQUEST} \s/assets/ [NC,OR]
76
+RewriteCond %{THE_REQUEST} \s/node_modules/ [NC,OR]
77
+RewriteCond %{REQUEST_FILENAME} !-f
78
+RewriteRule ^ index.php [L,QSA]");
79
+fclose($fp);
80
81
// Set variable values
82
0 commit comments