我在Silex中正常运行了一个根站点我想在domainname.com/news中运行其他CMS
现在问题是路线的bcos它给我错误
找不到“GET / news /”
的路线如何使这项工作?使用Mod_rewrite?
我已在Root / News上传CMS
(从评论添加路由规则)
t=# create table so16(j jsonb check (left(ltrim(j::text), 1) <> '['));
CREATE TABLE
t=# insert into so16 values('{"b":[1,2,3]}');
INSERT 0 1
t=# insert into so16 values('[1,2,3]');
ERROR: new row for relation "so16" violates check constraint "so16_j_check"
DETAIL: Failing row contains ([1, 2, 3]).
t=# insert into so16 values(' [1,2,3]');
ERROR: new row for relation "so16" violates check constraint "so16_j_check"
DETAIL: Failing row contains ([1, 2, 3]).
添加了以下
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www)\.
RewriteRule ^(.*)$ domainname.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]
现在我可以安装脚本,但在进入子域名时仍然无法打开子域news.domainname.com