Teddy's Dad Posted January 27, 2014 Share Posted January 27, 2014 (edited) Hello all Can anyone please tell me how to access a file directly? For example, I have created a page called test1.php and I have put it in the root folder. Ordinarily, I would be able to access this by going to http://example.com/test1.php, but when I do, it goes to a 404, obviously because the controller is taking control. How can I access http://example.com/test1.php ? I tried creating a new page in CMS through BO, but then I can only enter HTML in it and not PHP code. Any ideas would be greatly appreciated. Regards Calvin Edited January 28, 2014 by Teddy's Dad (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 27, 2014 Share Posted January 27, 2014 it will not work, especially with friendly urls. if you want to use php file, you have (for example) create a module directory and put this file there Link to comment Share on other sites More sharing options...
Teddy's Dad Posted January 28, 2014 Author Share Posted January 28, 2014 Thank you Vekia I have tried that too and it doesn't seem to work. I still cannot call a file from http://example.com/modules/my_module/test1.php. Am I doing something wrong? Please let me know Regards Calvin Link to comment Share on other sites More sharing options...
El Patron Posted January 28, 2014 Share Posted January 28, 2014 I have no problem doing this (1.4.6.2 w/friendly urls). http://www.myurl.co/info.php info.php contains phpinfo() displays fine...weird that it does not work for you Link to comment Share on other sites More sharing options...
Teddy's Dad Posted January 28, 2014 Author Share Posted January 28, 2014 Thank you El I am using 1.5.6 with friendly urls. Perhaps you can view it because you are on 1.4.6? Link to comment Share on other sites More sharing options...
El Patron Posted January 28, 2014 Share Posted January 28, 2014 Thank you El I am using 1.5.6 with friendly urls. Perhaps you can view it because you are on 1.4.6? Nope, works on 1.5.6.1 http://prestavalut.etiendas.co/delete.php Link to comment Share on other sites More sharing options...
El Patron Posted January 28, 2014 Share Posted January 28, 2014 check the permissions of the uploaded file. Link to comment Share on other sites More sharing options...
Teddy's Dad Posted January 28, 2014 Author Share Posted January 28, 2014 Thank you El The permission was the problem. All is sweet now. Nice catch... Calvin Link to comment Share on other sites More sharing options...
El Patron Posted January 28, 2014 Share Posted January 28, 2014 Thank you El The permission was the problem. All is sweet now. Nice catch... Calvin You are very welcome. I would be concerned if you ftp'ed the file that you have 'some odd' permission problem. But that is for another day and post. Happy PrestaShopping! Link to comment Share on other sites More sharing options...
vekia Posted January 28, 2014 Share Posted January 28, 2014 lawl i can't open any php file with friendly urls turned on :| Link to comment Share on other sites More sharing options...
El Patron Posted January 28, 2014 Share Posted January 28, 2014 lawl i can't open any php file with friendly urls turned on :| that is weird...do you have deny direct access in your root .htaccess? Link to comment Share on other sites More sharing options...
vekia Posted January 28, 2014 Share Posted January 28, 2014 im checkin configuration of apache right now (debian) i also tried on localhost (win 7) and... the same! Link to comment Share on other sites More sharing options...
Recommended Posts