我正在运行一个Next.js开发服务器。当我转到第1页,然后点击到第2页的链接,它会很好。(为了澄清,我没有使用Next的as标记<Link>标记,只是普通的旧href。)
但是,如果我然后刷新页面#2,页面本身就会加载,所有的图像也是如此.但是所有Javascript文件都失败了404:
net::ERR_ABORTED 404 (未找到)2 7localhost/:196 GET net::ERR_ABORTED 404 (未找到)2 7localhost/:1 GET net::ERR_ABORTED 404 (未找到)7 7localhost/:196 GET n
我在EC2上部署了EC2和运行在Amazon上的MySQL数据库。
主页显示正确,但当我尝试登录到管理面板时,我会得到一个错误。
以下是步骤的顺序:
我转到http://{ec2-ip-address}/wp-login.phpI,插入用户名和密码,我被重定向到http://{ec2-ip-address}/{ec2-ip-address}/wp-admin/,并带有错误消息"Not Found - The requested URL was not found on this server."If我将地址更改为http://{ec2-ip-address}/wp-admin/