抱歉标题用词太差了。我刚刚配置了一个Apache服务器,并将我的站点文件上传到适当的目录中。当URL中包含页面(如IP/index.php )时,页面将正确加载,但当我只键入IP或域名时,会得到以下消息:
The requested URL /.php was not found on this server.
我可能做错了什么?
我已经在DirectoryIndex index.php和httpd.conf中指定了.htaccess。
我正在运行CentOS 6.6和Apache2.2。
我试图从我的本地文件夹删除mp3文件,但不幸的是,它没有删除请帮助我如何做到感谢?
控制器
public function destroy(Request $request)
{
$hamdnaat = HamdoNaat::findOrFail($request->deleteId);
// apply your conditional check here
if (false) {
$response['error'] = 'This hamdnaat has some
我一直在努力把.php从我的网站上去掉。我希望它看起来像example.com/about,而不是example.com/about.php。我有它会重写它,所以我可以输入为example.com/about,但我希望它是当我点击我的网站上的链接转到example.com/about它加载的url为example.com/about,而不是example.com/about.php。总体而言,我喜欢这样,每当有人在我的页面上加载任何东西时,url的末尾都不会有.php。我的.htaccess现在看起来是这样的
RewriteEngine on
RewriteEngine On
Rewrite
我想在php中得到url。
我希望像这样访问"index.php"文件中的"book“文件夹”“下的"demoproject":
demoproject/book/index.php
我想要的:
当有人键入浏览器时,我想访问index.php文件
demoproject/book/page2
在index.php文件中,我编写了动态访问page2的代码。如果用户键入page3,则page3内容将加载到index.php文件中。
以下是我正在做的事情:
// Assume user type in the browser
// demoproject/bo
我一直在开发一个Apache模块,我需要它在PHP之前运行。
// Hook the main handler function to run before PHP5
static const char * const aszPos[]={ "mod_php5.c", NULL };
ap_hook_handler(cc_handler, NULL, aszPos, APR_HOOK_FIRST);
...but页面仍然带有未解析的'<?php ?>‘标签。
我想知道这是不是一个钩子问题,或者PHP没有解析它,因为它不把它识别为PHP url,但我尝试这样