服务器上载的网站,但显示错误的HTML链接页面

时间:2015-09-15 10:47:16

标签: php html hyperlink

我设计了一个网站并将其成功上传到服务器上。 HTML页面链接不再有效。

该网站是www.rentacar-mauritius.com" Home"效果不错,但其他人不喜欢" Tours,Rent a Car"等等。通过在浏览器上查看我的来源,您将看到我的代码。

2 个答案:

答案 0 :(得分:2)

直播服务器区分大小写(Linux主机)

  

我将您的网址更改为my $filename = 'NoDodge.c'; open my $in_fh, '<:encoding(utf8)', 'service.c' or die qq{Unable to open "service.c" for input: $!}; open my $out_fh, '>:encoding(utf8)', $filename or die qq{Unable to open "$filename" for output: $!}; 正常工作

检查您的文件名,拼写

所以您的网址

http://www.rentacar-mauritius.com/Rentacar.html

应该是

http://www.rentacar-mauritius.com/rentacar.html
http://www.rentacar-mauritius.com/tours.html
http://www.rentacar-mauritius.com/gallery.html
http://www.rentacar-mauritius.com/about.html
http://www.rentacar-mauritius.com/contact.html

明智地检查整个网站

http://www.rentacar-mauritius.com/Rentacar.html
http://www.rentacar-mauritius.com/Tours.html
http://www.rentacar-mauritius.com/Gallery.html
http://www.rentacar-mauritius.com/About.html
http://www.rentacar-mauritius.com/Contact.html

答案 1 :(得分:1)

对于Linux环境,文件名区分大小写。如果您的托管服务器正在运行Linux,请确保您的文件名与href值完全匹配(包括大小写)。