Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在beanstalk中为PHP激活mod_rewrite_Php_Amazon Web Services_Mod Rewrite_Amazon Elastic Beanstalk - Fatal编程技术网

在beanstalk中为PHP激活mod_rewrite

在beanstalk中为PHP激活mod_rewrite,php,amazon-web-services,mod-rewrite,amazon-elastic-beanstalk,Php,Amazon Web Services,Mod Rewrite,Amazon Elastic Beanstalk,我在AWS文档中游泳,然后沉入水中 我最近使用Elastic Beanstalk上传了我的php项目,但是当我尝试访问任何不是主页的URL时,我得到了一个404 not found。我认为这是一个.htaccess相关问题或mod\u rewrite问题。但我在文档中找不到激活、访问的位置,也找不到下一步调查的线索 我的本地.htaccess如下所示: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQU

我在AWS文档中游泳,然后沉入水中

我最近使用Elastic Beanstalk上传了我的php项目,但是当我尝试访问任何不是主页的URL时,我得到了一个404 not found。我认为这是一个
.htaccess
相关问题或
mod\u rewrite
问题。但我在文档中找不到激活、访问的位置,也找不到下一步调查的线索

我的本地
.htaccess
如下所示:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php [QSA,L]
任何帮助都将不胜感激!
谢谢

-已解决-请记住在上载到AWS之前取消隐藏
.htaccess
)…感谢您添加解决方案。如果您稍后找到解决方案,那么您可以接受并鼓励您为自己的问题提供真实的答案,这样就不会再将其列为“未回答”问题,从而为其他未回答的问题腾出空间。您在@Xisco这里“取消隐藏”是什么意思?