简体   繁体   English

网站URL仅显示域名,而不显示子页面

[英]Website URL only displays domain name and not the subpages

When I access my website at www.example.com , I receive the correct page. 当我访问www.example.com网站时,会收到正确的页面。 When I click on a link that accesses www.example.com/somepage.php , the server loads the new page correctly, but the URL bar still says www.example.com . 当我单击访问www.example.com/somepage.php的链接时,服务器会正​​确加载新页面,但URL栏仍显示www.example.com In addition, the web pages do not show the <title> specified in the HTML. 此外,网页不显示HTML中指定的<title>。

Could this have something to do with my using a URL Frame instead of a URL redirect through Namecheap? 这可能与我使用URL框架而不是通过Namecheap重定向URL有关吗?

You probably just linked the domain to your website host. 您可能只是将域链接到您的网站主机。 If you have a decent host you should be able to park the domain name in your cpanel. 如果您的主机不错,则应该可以将域名寄存在cpanel中。 If you will tell me your host I will give you more information. 如果您能告诉我您的房东,我会为您提供更多信息。

NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot /www/docs/dummy-host.example.com
    ServerName dummy-host.example.com
    ServerAlias www.dummy-host.example.com
    ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
    CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
</VirtualHost>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM