Issue with PHP website hosted in Linux instance?
Hi Guys,
We are starting to host our PHP website application in Amazon Web Services. The PHP website was originally hosted in IIS7 on our own server but we moved it now on an Amazon Linux instance. Okay, so the website is hosted now and its database is already linked to it. However, we are having this error when logging in to the website (see image). But when we are using this http://54.193.xxx.xxx/tile/index.php...martin we are able to get in but most of the images don't load properly. Any idea? I was able to speak with our developer and according to him we are using URL Rewrite rules in IIS before we move this site over to AWS. Do you think it has something to do with this? Please advise. Thank You! Arnel |
I reckon your developer is right, did you copy contents of your .htaccess file over to your new hosting?
|
Hi,
Yes, I copied all the files over to the hosting server. Thanks! Arnel |
Hi
IIS7 doesn't use .htaccess files. You will have to translate the rewrite rules from web.config to Apache's format. It's not easy. If you can find the web.config file on the IIS7 server, you could post it here. Maybe in the server section in this forum? Here is one with the same problem: http://stackoverflow.com/questions/2...ig-to-htaccess |
Hi Guttorm,
I'm not so sure but I saw we have several .htaccess files in the website's folder (6 in total). Okay thanks, I will post it in the server section. Thanks, Arnel |
Ok. If you have the .htaccess files, the developer probably made the rules in both. So you don't need to translate them.
It could simply be it's configured to not read them. Here's some info on how to configure Apache: http://stackoverflow.com/questions/1...working-apache |
Hi Guttorm,
You are right. It looks to be the .htaccess file that was being ignored. You are awesome! :) Thanks again! Arnel |
All times are GMT -5. The time now is 11:40 PM. |