wstar Posted May 18, 2016 Share Posted May 18, 2016 (edited) I wanted to run a file in the directory as follows: Prestashop_Root/scripts/test.php When i run this in the browser, I get a 404 page error. However, when I move the file to the root, it runs fine. What would be causing this? htaccess? Edited May 18, 2016 by wstar (see edit history) Link to comment Share on other sites More sharing options...
erouvier29 Posted May 18, 2016 Share Posted May 18, 2016 Mmm... First check URL vs directory name: scrips or scripts ? Link to comment Share on other sites More sharing options...
wstar Posted May 18, 2016 Author Share Posted May 18, 2016 Mmm... First check URL vs directory name: scrips or scripts ? I was thinking that too. I did a paste and copy from the FTP. Any folder I put the file into, gives me a 404 page. Like its trying to redirect or something. Link to comment Share on other sites More sharing options...
erouvier29 Posted May 19, 2016 Share Posted May 19, 2016 (edited) The script is correctly executed on a fresh PS 1.6.1.5. Did you make any change in Prestashop_Root/.htaccess, or do you have a Prestashop_Root/scripts/.htaccess? [EDIT] I mean a very simple script (echo 'Hello world'). Maybe yours triggers a (relative) redirection? Edited May 19, 2016 by erouvier29 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now