开发者

index.html index.php redirection + Internal Server Error

I'm using a mac, FTP is with Transmit. I am doing a website for a client on Wordpress. The site is finished but my client wanted to add another page in front of the website so when you click on the URL in Google, you have a page with their logo which you click and then access to the wordpress website.

So : I created a index.html with dreamweaver pointing to "http://www...." and I uploaded it in the FTP. The index开发者_运维问答.php of the wordpress site points also to that same address.

I added this code here in the .htaccess file:

DirectoryIndex index.html index.php

I then had to replace the index.html by another one (same but the content image is just bigger to have full width) and removing the old one. And now nothing seems to point, or there a duplicate problem! I have the "Internal Server Problem, error 500".

So there, the word is out! Thank You!


What exactly is wrong is hard to tell without knowing the error. If you have access to any apache log files, the error.log will tell you why it's outputting an error.

A HTTP 500 status can be any kind of error, but in my experience it is most commonly due to:

  • Incorrect file permissions on some files
  • syntax error in the .htaccess file or httpd.conf (which I'm guessing you don't have access to)

If you are on a shared host and you do not have access to the apache error.log file or you don't know where it is, it would probably be a good idea to contact the sys admin or support and ask why you're getting the error or ask where you can find the error.log file

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜