我有一个网页可访问localhost/example与一个公司注册区域的主页。在提交该表单时,页面应该重定向到localhost/register.example,但是我得到了一个错误。
URL: register.example (the localhost is missing?)
*This site can’t be reached. register.example's server DNS address could not be found.*
web.php路由文件
Route::get('/', 'HomepageController@home
主page.php模板文件中几乎没有任何HTML。这是非常不具体的,我不能编辑个别的元素和改变我的网页准确。我能够删除像整个标题这样的东西,但是我看到了其他的主题,其中有PHP模板文件,其中包含了大部分的页面结构,这给了我对网页的良好控制。
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Nikkon
*/
global $
主题检查错误→
REQUIRED: get_bloginfo('template_url') was found in the file search.php. Use get_template_directory_uri() instead.
Line 21: <img src='<?php echo get_bloginfo('template_url') ?>/img/no_results_found.png'/>
我做了些改变,但是图像现在没有出现在→的网页上。
<img src='<?php
有一个php项目是在核心php中完成的。现在,我的工作是更改一些样式表问题。所以我刚刚下载了数据库的所有文件。之后,我在本地主机(LAMP)上做了所有的设置。然后,我浏览了网页,我看到主页显示正确。但是当我点击任何一个链接时,我只会得到一个错误,比如
Not Found
The requested URL /filename.php was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
在使用tail /var/log/apache2/error.log命令查看错误日志时检查该问题。
我在服务器上部署了一个Laravel格式的应用程序。当我尝试在Postman中调用POST时 http://api.mydomain.com/api/auth/signin 我得到了错误404 not found。 在文件RouteServiceProvider中,我为web添加了注释部分: public function boot()
{
$this->configureRateLimiting();
$this->routes(function () {
Route::prefix('api')