无法从apache启动常规站点 [英] Not able to launch general sites from apache

查看:156
本文介绍了无法从apache启动常规站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个搜索引擎.在这里我可以在html页面上显示关键字以及超链接.但是,当我单击链接时,它被重定向到错误页面,提示在此服务器中找不到站点.问题是,如果我有一个超链接说www.google.com,如果单击它,则它会连接到http://localhost/www.google.com并说找不到网站.它没有直接连接到www.google.com.请帮助我找到解决方案.

服务器:Apache
语言:Python

I''m designing a search engine. Here I''m able to display the keywords along with the hyperlinks on the html page.But when i click on the link, it is being redirected to the error page saying site not found in this server. The thing is if i have a hyperlink say www.google.com, if i click on it then it gets connected to http://localhost/www.google.com and says site not found. It is not getting directly connected to www.google.com.Please help find me find a solution.

Server: Apache
Language: Python

推荐答案

我不太确定设计搜索引擎"是什么意思,但是如果您按超链接并且未重定向到您认为您应该已被重定向,那么您的超链接肯定有问题.由于您完全没有给我们任何提示,您的超链接是如何以HTML呈现的,因此我们无能为力.

请分析会给您带来麻烦的HTML锚定链接,并将其添加到您的问题中,以便我们看到它的外观.还添加有关网站结构的信息,因为使用相对URL时,这是相关的.

最好的问候,

—MRB
I''m not quite sure what you mean by "designing a search enginge", but if you you press a hyperlink and are not redirected where you think you should have been redirected, well there must be something wrong with your hyperlink then. Since you have given us no hint at all how your hyperlink was rendered as HTML there is nothing much we can do for you.

Please analyze the HTML anchor link that is giving you trouble and add it to your question, so we can see what it looks like. Also add information about the site structure as this is relevant when relative URLs are used.

Best Regards,

—MRB


这篇关于无法从apache启动常规站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆